nagaraj at int.uni-karlsruhe.de
2008-Aug-06 08:42 UTC
[Speex-dev] speex_nb_mode declaration problem
Hello all, I am using the speex APIs in a gnuradio block. I used the similar code as in the sampleenc.c/sampledec.c which works perfectly fine. My compilation does not give any error, but when I run the python test, it complains that speex_nb_mode is undefined. I tried to declare it explicitly then it as const SpeexMode *mode = NULL , then i get an error that i cannot initialize the const SpeexMode type. Can someone help me with this problem? Thanks for your time and attention. Regards, Kshama
nagaraj at int.uni-karlsruhe.de a ?crit :> I am using the speex APIs in a gnuradio block. > I used the similar code as in the sampleenc.c/sampledec.c which works > perfectly fine. > My compilation does not give any error, but when I run the python test, it > complains that speex_nb_mode is undefined. > I tried to declare it explicitly then it as const SpeexMode *mode = NULL , > then i get an error that i cannot initialize the const SpeexMode type. > Can someone help me with this problem?Exported variables cause problems sometimes, so you can instead use something like: speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); Jean-Marc