/* ----------------------------------------------------------------------------
 * 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: Moog extends: Filter fields: swigCPtrForMoog {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGMoogToFilter: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForMoog := newCPtr.
  ]

  Method [ getCPtrForMoog
    ^swigCPtrForMoog
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

  Function [ in: in
    ^self fromPointer: (CslNI cslNI_new_Moog__SWIG_0: (UnitGenerator getCPtr: in)) memoryOwn: true
  ]

  Function [ in: in cutoff: cutoff
    ^self fromPointer: (CslNI cslNI_new_Moog__SWIG_1: (UnitGenerator getCPtr: in), (UnitGenerator getCPtr: cutoff)) memoryOwn: true
  ]

  Function [ in: in cutoff: cutoff resonance: resonance
    ^self fromPointer: (CslNI cslNI_new_Moog__SWIG_2: (UnitGenerator getCPtr: in), (UnitGenerator getCPtr: cutoff), (UnitGenerator getCPtr: resonance)) memoryOwn: true
  ]

  Function [ in: in cutoff: cutoff
    ^self fromPointer: (CslNI cslNI_new_Moog__SWIG_3: (UnitGenerator getCPtr: in), cutoff) memoryOwn: true
  ]

  Function [ in: in cutoff: cutoff resonance: resonance
    ^self fromPointer: (CslNI cslNI_new_Moog__SWIG_4: (UnitGenerator getCPtr: in), cutoff, resonance) memoryOwn: true
  ]

  Method [ setupCoeffs 
    CslNI cslNI_Moog_setupCoeffs: swigCPtrForMoog 
  ]

  Method [ nextBuffer: outputBuffer outBufNum: outBufNum 
    CslNI cslNI_Moog_nextBuffer: swigCPtrForMoog with: (Buffer getCPtr: outputBuffer) with: outBufNum
  ]

}
