Skip to main content


Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: Encoding with speex. (Read 2895 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Encoding with speex.


So I'm using speex to encode my data which I'm using for this program I'm building. At this point I have an unsigned char array holding my raw WAV data and I'm setting it up to pass to speex.

Now, based on the manual , the real encoding happens when I call speex_encode and speex_bits_write...

What I'm wondering... speex encode takes a float * as the input frame, I guess that isn't a problem because char * size = float * size. The issue I'm having is I don't pass in the size of MY raw data buffer anywhere ? is that size supposed to be the frame size ?

If I have this totally wrong, how do I pass in my raw data buffer to speex properly to encode and write to another buffer ? The docs unfortunately aren't too descriptive

Sorry if I'm too newbie

SimplePortal 1.0.0 RC1 © 2008-2021