[Speex-dev] speex_encode_int() - pls help..

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Mon Oct 17 00:12:35 PDT 2005


You need to send a short *pointer* (to 160 samples), not a short.

	Jean-Marc

Le lundi 17 octobre 2005 à 15:02 +0800, Mo Win a écrit :
> Hi, 
> 
> I'm using speex 1.1.10 and writing a program similar to sampleenc. I
> need to use the fixed point library as I'm eventually porting to ARM
> processor but I encountered a problem with speex_encode_int(), which I
> used in place of speex_encode(). I gave it a short instead of a float
> (manual says it takes a short for the audio - 2nd parameter) but the
> compiler says it could not convert the short [160] to __int16? same
> error if I feed it a float (which I know I'm not supposed to do
> anyway). Any ideas what could be wrong? 
> 
> 
> Thank you very much,
> Monica
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev


More information about the Speex-dev mailing list