Thanks Jean-Marc,
I have a few more questions for clarification... I sent the function a
pointer to 160 (short) samples, i.e. instead of float input[160], i declared
short input[160]. 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@usherbrooke.ca>
wrote:>
> 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@xiph.org
> > http://lists.xiph.org/mailman/listinfo/speex-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.xiph.org/pipermail/speex-dev/attachments/20051017/f91bfb0d/attachment-0001.html