/* ----------------------------------------------------------------------------
 * 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: Sine extends: Oscillator fields: swigCPtrForSine {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGSineToOscillator: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForSine := newCPtr.
  ]

  Method [ getCPtrForSine
    ^swigCPtrForSine
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

  Function [ frequency: frequency ampl: ampl offset: offset phase: phase
    ^self fromPointer: (CslNI cslNI_new_Sine__SWIG_0: frequency, ampl, offset, phase) memoryOwn: true
  ]

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

  Function [ frequency: frequency ampl: ampl
    ^self fromPointer: (CslNI cslNI_new_Sine__SWIG_2: frequency, ampl) memoryOwn: true
  ]

  Function [ frequency: frequency
    ^self fromPointer: (CslNI cslNI_new_Sine__SWIG_3: frequency) memoryOwn: true
  ]

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

  Method [ nextBuffer: outputBuffer outBufNum: outBufNum 
    CslNI cslNI_Sine_nextBuffer: swigCPtrForSine with: (Buffer getCPtr: outputBuffer) with: outBufNum
  ]

}
