%module(directors="1") pysndobj %{ #include "SndObj.h" #include "SndIO.h" #include "Table.h" #include "FFT.h" #include "IFFT.h" #include "PVA.h" #include "PVS.h" #include "IFGram.h" #include "SinAnal.h" #include "SinSyn.h" #include "AdSyn.h" #include "ReSyn.h" #include "HarmTable.h" #include "HammingTable.h" #define SWIG_FILE_WITH_INIT %} %feature("director") SndObj; %feature("director") SinAnal; %include "../common/numpy.i" %init %{ import_array(); %} %ignore SndObj::SndObj(SndObj &); %ignore SndObj::operator=(SndObj); %apply(double* IN_ARRAY1, int DIM1) {(double* in_vector, int size)}; %apply(double* INPLACE_ARRAY1, int DIM1) {(double* out_vector, int size)}; %include "SndObj.h" %clear(double* in_vector, int size); %clear(double* out_vector, int size); %include "SndIO.h" %include "Table.h" %include "FFT.h" %include "IFFT.h" %include "PVA.h" %include "PVS.h" %include "IFGram.h" %apply (int DIM1, double* IN_ARRAY1) { (int numamps, double* amps), (int numfreqs, double* freqs), (int numphases, double* phases) } %include "SinAnal.h" %include "SinSyn.h" %include "ReSyn.h" %include "AdSyn.h" %include "HarmTable.h" %include "HammingTable.h"