[Speex-dev] converting unsigned short sample to signed short sample

Mashal al-shboul shboul8989 at yahoo.com
Tue Mar 13 20:21:17 PDT 2012

    Hi All,
I would like to get your help in my problem,

we know that Speex codec takes samples of type short (signed), range:-2^15 to2^15 -1 , my problem is that i have samples of type 

unsigned short ,range: 0 to 2^16 -1. so, what should i do in order to apply speex on my unsigned samples ?.

     There is  a proposed solution to subtract 2^15-1 from each unsigned short to get it signed short, my question: is this method safe in keeping the samples meaningful for speex's processing algorithms?. 

i hope i receive help from you. Thanks in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20120313/7952ad8c/attachment.htm 

More information about the Speex-dev mailing list