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

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

  Method [ getCPtrForFilterSpecification
    ^swigCPtrForFilterSpecification
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForFilterSpecification ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_FilterSpecification: swigCPtrForFilterSpecification.
    ].
    swigCPtrForFilterSpecification := 0.
  ]

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

  Function [ numTaps: numTaps numBands: numBands freqs: freqs resps: resps weights: weights
    ^self fromPointer: (CslNI cslNI_new_FilterSpecification__SWIG_0: numTaps, numBands, (SwigTypePdouble getCPtr: freqs), (SwigTypePdouble getCPtr: resps), (SwigTypePdouble getCPtr: weights)) memoryOwn: true
  ]

  Function [ numTaps: numTaps numBands: numBands freqs: freqs resps: resps
    ^self fromPointer: (CslNI cslNI_new_FilterSpecification__SWIG_1: numTaps, numBands, (SwigTypePdouble getCPtr: freqs), (SwigTypePdouble getCPtr: resps)) memoryOwn: true
  ]

  Function [ numTaps: numTaps numBands: numBands freqs: freqs
    ^self fromPointer: (CslNI cslNI_new_FilterSpecification__SWIG_2: numTaps, numBands, (SwigTypePdouble getCPtr: freqs)) memoryOwn: true
  ]

  Function [ numTaps: numTaps numBands: numBands
    ^self fromPointer: (CslNI cslNI_new_FilterSpecification__SWIG_3: numTaps, numBands) memoryOwn: true
  ]

  Function [ numTaps: numTaps
    ^self fromPointer: (CslNI cslNI_new_FilterSpecification__SWIG_4: numTaps) memoryOwn: true
  ]

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

  Method [ setFrequencies: frequencies 
    CslNI cslNI_FilterSpecification_setFrequencies: swigCPtrForFilterSpecification with: (SwigTypePdouble getCPtr: frequencies)
  ]

  Method [ setResponses: responses 
    CslNI cslNI_FilterSpecification_setResponses: swigCPtrForFilterSpecification with: (SwigTypePdouble getCPtr: responses)
  ]

  Method [ setWeights: weights 
    CslNI cslNI_FilterSpecification_setWeights: swigCPtrForFilterSpecification with: (SwigTypePdouble getCPtr: weights)
  ]

  Method [ setNumTaps: numTaps 
    CslNI cslNI_FilterSpecification_setNumTaps: swigCPtrForFilterSpecification with: numTaps
  ]

  Method [ planFilter 
    CslNI cslNI_FilterSpecification_planFilter: swigCPtrForFilterSpecification 
  ]

}
