/* ----------------------------------------------------------------------------
 * 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: Panner extends: Effect fields: swigCPtrForPanner {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGPannerToEffect: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForPanner := newCPtr.
  ]

  Method [ getCPtrForPanner
    ^swigCPtrForPanner
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

  Function [ input: input
    ^self fromPointer: (CslNI cslNI_new_Panner__SWIG_1: (UnitGenerator getCPtr: input)) memoryOwn: true
  ]

  Function [ input: input position: position
    ^self fromPointer: (CslNI cslNI_new_Panner__SWIG_2: (UnitGenerator getCPtr: input), (UnitGenerator getCPtr: position)) memoryOwn: true
  ]

  Function [ input: input position: position
    ^self fromPointer: (CslNI cslNI_new_Panner__SWIG_3: (UnitGenerator getCPtr: input), position) memoryOwn: true
  ]

  Function [ input: input position: position amplitude: amplitude
    ^self fromPointer: (CslNI cslNI_new_Panner__SWIG_4: (UnitGenerator getCPtr: input), (UnitGenerator getCPtr: position), (UnitGenerator getCPtr: amplitude)) memoryOwn: true
  ]

  Function [ input: input position: position amplitude: amplitude
    ^self fromPointer: (CslNI cslNI_new_Panner__SWIG_5: (UnitGenerator getCPtr: input), (UnitGenerator getCPtr: position), amplitude) memoryOwn: true
  ]

  Function [ input: input position: position amplitude: amplitude
    ^self fromPointer: (CslNI cslNI_new_Panner__SWIG_6: (UnitGenerator getCPtr: input), position, amplitude) memoryOwn: true
  ]

  Method [ setPosition: pan 
    CslNI cslNI_Panner_setPosition__SWIG_0: swigCPtrForPanner with: (UnitGenerator getCPtr: pan)
  ]

  Method [ setPosition: pan 
    CslNI cslNI_Panner_setPosition__SWIG_1: swigCPtrForPanner with: pan
  ]

  Method [ numChannels 
    ^CslNI cslNI_Panner_numChannels: swigCPtrForPanner 
  ]

  Method [ nextBuffer: outputBuffer 
    CslNI cslNI_Panner_nextBuffer: swigCPtrForPanner with: (Buffer getCPtr: outputBuffer)
  ]

}
