Re: Swig + Numpy.i with a const int16_t pointer

2015-11-12 Thread Christian Gollwitzer
Am 12.11.15 um 10:16 schrieb Christian Gollwitzer: Am 12.11.15 um 09:46 schrieb Christian Gollwitzer: Am 11.11.15 um 02:09 schrieb shripha...@gmail.com: I am trying to wrap the following function with SWIG so I can call it from Python. The signature is: ``` int WebRtcVad_Process(VadInst* handl

Re: Swig + Numpy.i with a const int16_t pointer

2015-11-12 Thread Christian Gollwitzer
Am 12.11.15 um 09:46 schrieb Christian Gollwitzer: Am 11.11.15 um 02:09 schrieb shripha...@gmail.com: I am trying to wrap the following function with SWIG so I can call it from Python. The signature is: ``` int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame, size_t frame_

Re: Swig + Numpy.i with a const int16_t pointer

2015-11-12 Thread Christian Gollwitzer
Am 11.11.15 um 02:09 schrieb shripha...@gmail.com: I am trying to wrap the following function with SWIG so I can call it from Python. The signature is: ``` int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame, size_t frame_length); ``` This is thing is an array of 16 bit

Swig + Numpy.i with a const int16_t pointer

2015-11-10 Thread shriphanip
I am trying to wrap the following function with SWIG so I can call it from Python. The signature is: ``` int WebRtcVad_Process(VadInst* handle, int fs, const int16_t* audio_frame, size_t frame_length); ``` I have the following SWIG file: https://gist.github.com/shriphani/92c587ea4c32bafc9d97