Mashal al-shboul
2012-Mar-09 07:59 UTC
[Speex-dev] using unsigned short instead of short for input frame
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20120308/317bd7df/attachment.htm