/* ----------------------------------------------------------------------------
 * 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: AiffFile extends: SwigProxy fields: swigCPtrForAiffFile, swigCMemoryOwn {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    swigCMemoryOwn := newCMemoryOwn.
    swigCPtrForAiffFile := newCPtr.
  ]

  Method [ getCPtrForAiffFile
    ^swigCPtrForAiffFile
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForAiffFile ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      LorisNI lorisNI_delete_AiffFile: swigCPtrForAiffFile.
    ].
    swigCPtrForAiffFile := 0.
  ]

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

  Function [ filename: filename
    ^self fromPointer: (LorisNI lorisNI_new_AiffFile__SWIG_0: filename asNullTermStringParameter) memoryOwn: true
  ]

  Function [ vec: vec samplerate: samplerate
    ^self fromPointer: (LorisNI lorisNI_new_AiffFile__SWIG_1: (DoubleVector getCPtr: vec), samplerate) memoryOwn: true
  ]

  Method [ sampleRate 
    ^LorisNI lorisNI_AiffFile_sampleRate: swigCPtrForAiffFile 
  ]

  Method [ midiNoteNumber 
    ^LorisNI lorisNI_AiffFile_midiNoteNumber: swigCPtrForAiffFile 
  ]

  Method [ sampleFrames 
    ^LorisNI lorisNI_AiffFile_sampleFrames: swigCPtrForAiffFile 
  ]

  Method [ addPartial: p fadeTime: fadeTime 
    LorisNI lorisNI_AiffFile_addPartial__SWIG_0: swigCPtrForAiffFile with: (SwigTypePLorisPartial getCPtr: p) with: fadeTime
  ]

  Method [ addPartial: p 
    LorisNI lorisNI_AiffFile_addPartial__SWIG_1: swigCPtrForAiffFile with: (SwigTypePLorisPartial getCPtr: p)
  ]

  Method [ setMidiNoteNumber: nn 
    LorisNI lorisNI_AiffFile_setMidiNoteNumber: swigCPtrForAiffFile with: nn
  ]

  Method [ write: filename bps: bps 
    LorisNI lorisNI_AiffFile_write__SWIG_0: swigCPtrForAiffFile with: filename asNullTermStringParameter with: bps
  ]

  Method [ write: filename 
    LorisNI lorisNI_AiffFile_write__SWIG_1: swigCPtrForAiffFile with: filename asNullTermStringParameter
  ]

  Function [ l: l sampleRate: sampleRate fadeTime: fadeTime
    ^self fromPointer: (LorisNI lorisNI_new_AiffFile__SWIG_2: (PartialList getCPtr: l), sampleRate, fadeTime) memoryOwn: true
  ]

  Function [ l: l sampleRate: sampleRate
    ^self fromPointer: (LorisNI lorisNI_new_AiffFile__SWIG_3: (PartialList getCPtr: l), sampleRate) memoryOwn: true
  ]

  Function [ l: l
    ^self fromPointer: (LorisNI lorisNI_new_AiffFile__SWIG_4: (PartialList getCPtr: l)) memoryOwn: true
  ]

  Method [ samples 
    ^DoubleVector fromPointer: LorisNI lorisNI_AiffFile_samples: swigCPtrForAiffFile  memoryOwn: true
  ]

  Method [ channels 
    ^LorisNI lorisNI_AiffFile_channels: swigCPtrForAiffFile 
  ]

  Method [ addPartials: l fadeTime: fadeTime 
    LorisNI lorisNI_AiffFile_addPartials__SWIG_0: swigCPtrForAiffFile with: (PartialList getCPtr: l) with: fadeTime
  ]

  Method [ addPartials: l 
    LorisNI lorisNI_AiffFile_addPartials__SWIG_1: swigCPtrForAiffFile with: (PartialList getCPtr: l)
  ]

  Method [ markers 
    ^MarkerVector fromPointer: LorisNI lorisNI_AiffFile_markers: swigCPtrForAiffFile  memoryOwn: true
  ]

  Method [ addMarkers: markers 
    LorisNI lorisNI_AiffFile_addMarkers: swigCPtrForAiffFile with: (MarkerVector getCPtr: markers)
  ]

  Method [ setMarkers: markers 
    LorisNI lorisNI_AiffFile_setMarkers: swigCPtrForAiffFile with: (MarkerVector getCPtr: markers)
  ]

}
