/* ----------------------------------------------------------------------------
 * 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: Joiner extends: Effect fields: swigCPtrForJoiner {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGJoinerToEffect: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForJoiner := newCPtr.
  ]

  Method [ getCPtrForJoiner
    ^swigCPtrForJoiner
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

  Function [ in1: in1 in2: in2
    ^self fromPointer: (CslNI cslNI_new_Joiner__SWIG_1: (UnitGenerator getCPtr: in1), (UnitGenerator getCPtr: in2)) memoryOwn: true
  ]

  Method [ nextBuffer: outputBuffer 
    CslNI cslNI_Joiner_nextBuffer: swigCPtrForJoiner with: (Buffer getCPtr: outputBuffer)
  ]

  Method [ addInput: in 
    CslNI cslNI_Joiner_addInput: swigCPtrForJoiner with: (UnitGenerator getCPtr: in)
  ]

}
