/* ----------------------------------------------------------------------------
 * 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: SumOfSines extends: CompOrCacheOscillator fields: swigCPtrForSumOfSines {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGSumOfSinesToCompOrCacheOscillator: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForSumOfSines := newCPtr.
  ]

  Method [ getCPtrForSumOfSines
    ^swigCPtrForSumOfSines
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

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

  Function [ format: format partialCount: partialCount
    ^self fromPointer: (CslNI cslNI_new_SumOfSines__SWIG_2: format, partialCount) memoryOwn: true
  ]

  Method [ addPartial: pt 
    CslNI cslNI_SumOfSines_addPartial__SWIG_0: swigCPtrForSumOfSines with: (Partial getCPtr: pt)
  ]

  Method [ addPartials: num_p pt: pt 
    CslNI cslNI_SumOfSines_addPartials: swigCPtrForSumOfSines with: num_p with: (SwigTypePpcslPartial getCPtr: pt)
  ]

  Method [ addPartial: nu amp: amp 
    CslNI cslNI_SumOfSines_addPartial__SWIG_1: swigCPtrForSumOfSines with: nu with: amp
  ]

  Method [ addPartial: nu amp: amp phase: phase 
    CslNI cslNI_SumOfSines_addPartial__SWIG_2: swigCPtrForSumOfSines with: nu with: amp with: phase
  ]

  Method [ dump 
    CslNI cslNI_SumOfSines_dump: swigCPtrForSumOfSines 
  ]

}
