[Speex-dev] Simple example of decoding streaming audio realtime?

Conrad Parker conrad at metadecks.org
Thu Apr 29 18:59:31 PDT 2010


On 30 April 2010 05:45, Clifton Craig <clifton.craig at gmail.com> wrote:
> Hi,
>
> I'm new to Speex and a little uncomfortable in C programming. I'm looking for a simple example of how I'd use Speex to decode a speex file read off of an network stream and pass the decoded samples to an audio player. I have speex running in an iPhone project and I started digging thru the speexdec.c example trying to refactor as I made sense of the API calls. The example is a little cryptic and involved and I was wondering if there was a watered down version or if someone could whip one up for me. Thanx in advance!

Hi,

you could try using libfishsound and liboggz, like in this sample
decoder from the libfishsound source:

http://git.xiph.org/?p=libfishsound.git;a=blob;f=src/examples/fishsound-decode.c;h=d9c178d44281f73ede3c73caccaeebbf1fa2169a;hb=HEAD

cheers,

Conrad.


More information about the Speex-dev mailing list