using unsigned short instead of short for input frame
Mashal al-shboul <[email protected]> Thu, 8 Mar 2012 23:59:37 -0800 (PST)
| Newsgroups | gmane.comp.audio.compression.speex.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Speex Experts,Thanks for this great mailing list. i want to compress a frame of(uint16_t) audio samples, i found that speex codec assumes input frame of type short. fortunately,both data types are of 2-bytes , so my questions : - can i cast data types for input to speex?, if so,can i cast uint16_t to unsigned short and still be accepted by speex ? , because i found converting from uint16_t to short does completely change the values of the samples(unsigned to signed !). Any help or suggestion is appreciated. Thanks in advance. Regards, Mash'al _______________________________________________ Speex-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/speex-dev