/* ----------------------------------------------------------------------------
 * 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: Formant extends: Filter fields: swigCPtrForFormant {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGFormantToFilter: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForFormant := newCPtr.
  ]

  Method [ getCPtrForFormant
    ^swigCPtrForFormant
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

  Function [ in: in center_freq: center_freq radius: radius
    ^self fromPointer: (CslNI cslNI_new_Formant__SWIG_0: (UnitGenerator getCPtr: in), center_freq, radius) memoryOwn: true
  ]

  Function [ in: in center_freq: center_freq radius: radius
    ^self fromPointer: (CslNI cslNI_new_Formant__SWIG_1: (UnitGenerator getCPtr: in), (UnitGenerator getCPtr: center_freq), radius) memoryOwn: true
  ]

  Method [ setupCoeffs 
    CslNI cslNI_Formant_setupCoeffs: swigCPtrForFormant 
  ]

  Method [ setNormalize: normalize 
    CslNI cslNI_Formant_setNormalize: swigCPtrForFormant with: normalize asBooleanParameter
  ]

}
