/* ----------------------------------------------------------------------------
 * 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: PinkNoise extends: Noise fields: swigCPtrForPinkNoise {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGPinkNoiseToNoise: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForPinkNoise := newCPtr.
  ]

  Method [ getCPtrForPinkNoise
    ^swigCPtrForPinkNoise
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

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

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

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

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

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

  Method [ nextBuffer: outputBuffer outBufNum: outBufNum 
    CslNI cslNI_PinkNoise_nextBuffer: swigCPtrForPinkNoise with: (Buffer getCPtr: outputBuffer) with: outBufNum
  ]

  Method [ nextPink 
    ^CslNI cslNI_PinkNoise_nextPink: swigCPtrForPinkNoise 
  ]

}
