[Speex-dev] speex_encode_int() - pls help..
mowin.dev at gmail.com
Mon Oct 17 00:44:24 PDT 2005
I have a few more questions for clarification... I sent the function a
pointer to 160 (short) samples, i.e. instead of float input, i declared
short input. Then I sent input (a short pointer now right?) to
speex_encode_int. was this wrong? could you tell me explicitly which parts
of sampleenc i was supposed to modify / add to?
Also, if instead of using the above method I define FIXED_POINT then use
speex_encode(), the floats will be converted to fixed point right? would
that have the same net result as using speex_encode_int?
On 10/17/05, Jean-Marc Valin <Jean-Marc.Valin at usherbrooke.ca> wrote:
> You need to send a short *pointer* (to 160 samples), not a short.
> 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  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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Speex-dev