/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


Class name: WhiteNoise extends: Noise fields: swigCPtrForWhiteNoise {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGWhiteNoiseToNoise: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForWhiteNoise := newCPtr.
  ]

  Method [ getCPtrForWhiteNoise
    ^swigCPtrForWhiteNoise
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForWhiteNoise ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_WhiteNoise: swigCPtrForWhiteNoise.
    ].
    swigCPtrForWhiteNoise := 0.
    super delete.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForWhiteNoise
  ]

  Function [ new
    ^self fromPointer: (CslNI cslNI_new_WhiteNoise__SWIG_0) memoryOwn: true
  ]

  Function [ ampl: ampl offset: offset
    ^self fromPointer: (CslNI cslNI_new_WhiteNoise__SWIG_1: ampl, offset) memoryOwn: true
  ]

  Function [ ampl: ampl
    ^self fromPointer: (CslNI cslNI_new_WhiteNoise__SWIG_2: ampl) memoryOwn: true
  ]

  Function [ seed: seed ampl: ampl offset: offset
    ^self fromPointer: (CslNI cslNI_new_WhiteNoise__SWIG_3: seed, ampl, offset) memoryOwn: true
  ]

  Function [ seed: seed ampl: ampl
    ^self fromPointer: (CslNI cslNI_new_WhiteNoise__SWIG_4: seed, ampl) memoryOwn: true
  ]

  Function [ seed: seed
    ^self fromPointer: (CslNI cslNI_new_WhiteNoise__SWIG_5: seed) memoryOwn: true
  ]

  Method [ nextBuffer: outputBuffer outBufNum: outBufNum 
    CslNI cslNI_WhiteNoise_nextBuffer: swigCPtrForWhiteNoise with: (Buffer getCPtr: outputBuffer) with: outBufNum
  ]

}
