/* ----------------------------------------------------------------------------
 * 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: RandEnvelope extends: Envelope fields: swigCPtrForRandEnvelope {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGRandEnvelopeToEnvelope: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForRandEnvelope := newCPtr.
  ]

  Method [ getCPtrForRandEnvelope
    ^swigCPtrForRandEnvelope
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

  Function [ frequency: frequency amplitude: amplitude offset: offset step: step
    ^self fromPointer: (CslNI cslNI_new_RandEnvelope__SWIG_0: frequency, amplitude, offset, step) memoryOwn: true
  ]

  Function [ frequency: frequency amplitude: amplitude offset: offset
    ^self fromPointer: (CslNI cslNI_new_RandEnvelope__SWIG_1: frequency, amplitude, offset) memoryOwn: true
  ]

  Function [ frequency: frequency amplitude: amplitude
    ^self fromPointer: (CslNI cslNI_new_RandEnvelope__SWIG_2: frequency, amplitude) memoryOwn: true
  ]

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

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

  Method [ setWalk: walk 
    CslNI cslNI_RandEnvelope_setWalk: swigCPtrForRandEnvelope with: walk asBooleanParameter
  ]

  Method [ setAmplitude: amplitude 
    CslNI cslNI_RandEnvelope_setAmplitude: swigCPtrForRandEnvelope with: amplitude
  ]

  Method [ setFrequency: frequency 
    CslNI cslNI_RandEnvelope_setFrequency: swigCPtrForRandEnvelope with: frequency
  ]

  Method [ setStep: step 
    CslNI cslNI_RandEnvelope_setStep: swigCPtrForRandEnvelope with: step
  ]

  Method [ setOffset: offset 
    CslNI cslNI_RandEnvelope_setOffset: swigCPtrForRandEnvelope with: offset
  ]

  Method [ isActive 
	^(CslNI cslNI_RandEnvelope_isActive: swigCPtrForRandEnvelope ) asBoolean
  ]

  Method [ reset 
    CslNI cslNI_RandEnvelope_reset: swigCPtrForRandEnvelope 
  ]

  Method [ trigger 
    CslNI cslNI_RandEnvelope_trigger: swigCPtrForRandEnvelope 
  ]

  Method [ dump 
    CslNI cslNI_RandEnvelope_dump: swigCPtrForRandEnvelope 
  ]

  Method [ nextBuffer: outputBuffer outBufNum: outBufNum 
    CslNI cslNI_RandEnvelope_nextBuffer: swigCPtrForRandEnvelope with: (Buffer getCPtr: outputBuffer) with: outBufNum
  ]

}
