<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div>Hi Speex Experts,Thanks for this great mailing list.</div><div><br></div><div>&nbsp;&nbsp;&nbsp;&nbsp; i want to compress a frame of<span style="font-weight: bold;"> (uint16_t</span>) audio samples, i found that speex codec assumes input frame of type <span style="font-weight: bold;">short. </span><span>fortunately,both data types are of&nbsp; <span style="font-weight: bold;">2-bytes</span> , so my questions :</span></div><div><span>- can i cast data types for input to speex?, if so,<span style="font-weight: bold;"> can i cast uint16_t to unsigned short and still be accepted by speex</span> ? ,</span></div><div><span>because i found converting from uint16_t to <span style="font-weight: bold;">short</span> does completely change the values of the samples(unsigned to signed
 !).</span></div><div><br><span></span></div><div><span>Any help or suggestion is appreciated. Thanks in advance.</span></div><div><br><span></span></div><div><span>Regards,</span></div><div><span>Mash'al</span></div><div><span><br></span></div></div></body></html>