Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98628
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-11-10 17:09 -0800 |
| Message-ID | <05ae95fa-68f0-43ca-8b36-04a827c5d878@googlegroups.com> (permalink) |
| Subject | Swig + Numpy.i with a const int16_t pointer |
| From | shriphanip@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); ``` I have the following SWIG file: https://gist.github.com/shriphani/92c587ea4c32bafc9d97 At the end of this, I get the following error: webrtc_vad.i:22: Warning 453: Can't apply (int16_t const *IN_ARRAY1,unsigned int DIM1). No typemaps are defined. If I drop the unsigned bit in the signature, then it compiles fine but the function signature is carried as-is (i.e. the function expects an int pointer and all that business). Does anyone have a solution? Regards, Shriphani
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Swig + Numpy.i with a const int16_t pointer shriphanip@gmail.com - 2015-11-10 17:09 -0800
Re: Swig + Numpy.i with a const int16_t pointer Christian Gollwitzer <auriocus@gmx.de> - 2015-11-12 09:46 +0100
Re: Swig + Numpy.i with a const int16_t pointer Christian Gollwitzer <auriocus@gmx.de> - 2015-11-12 10:16 +0100
Re: Swig + Numpy.i with a const int16_t pointer Christian Gollwitzer <auriocus@gmx.de> - 2015-11-12 10:17 +0100
csiph-web