[Speex-dev] speex_nb_mode declaration problem

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Wed Aug 6 03:53:42 PDT 2008


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


More information about the Speex-dev mailing list