converting unsigned short sample to signed short sample

Mashal al-shboul <[email protected]> Tue, 13 Mar 2012 20:21:17 -0700 (PDT)
Newsgroups gmane.comp.audio.compression.speex.devel
Message-ID <[email protected]>
    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

Regards,
Mash'al

_______________________________________________
Speex-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/speex-dev