/* ----------------------------------------------------------------------------
 * 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: Impulse extends: Oscillator fields: swigCPtrForImpulse {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGImpulseToOscillator: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForImpulse := newCPtr.
  ]

  Method [ getCPtrForImpulse
    ^swigCPtrForImpulse
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

  Function [ delay: delay
    ^self fromPointer: (CslNI cslNI_new_Impulse__SWIG_1: delay) memoryOwn: true
  ]

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

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

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

  Method [ nextBuffer: outputBuffer outBufNum: outBufNum 
    CslNI cslNI_Impulse_nextBuffer: swigCPtrForImpulse with: (Buffer getCPtr: outputBuffer) with: outBufNum
  ]

}
