/* ----------------------------------------------------------------------------
 * 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: Phased extends: Controllable fields: swigCPtrForPhased {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGPhasedToControllable: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForPhased := newCPtr.
  ]

  Method [ getCPtrForPhased
    ^swigCPtrForPhased
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

  Function [ frequency: frequency phase: phase
    ^self fromPointer: (CslNI cslNI_new_Phased__SWIG_1: frequency, phase) memoryOwn: true
  ]

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

  Function [ frequency: frequency phase: phase
    ^self fromPointer: (CslNI cslNI_new_Phased__SWIG_3: (UnitGenerator getCPtr: frequency), phase) memoryOwn: true
  ]

  Function [ frequency: frequency
    ^self fromPointer: (CslNI cslNI_new_Phased__SWIG_4: (UnitGenerator getCPtr: frequency)) memoryOwn: true
  ]

  Method [ setFrequency: frequency 
    CslNI cslNI_Phased_setFrequency__SWIG_0: swigCPtrForPhased with: (UnitGenerator getCPtr: frequency)
  ]

  Method [ setFrequency: frequency 
    CslNI cslNI_Phased_setFrequency__SWIG_1: swigCPtrForPhased with: frequency
  ]

  Method [ setPhase: phase 
    CslNI cslNI_Phased_setPhase: swigCPtrForPhased with: phase
  ]

}
