?how to render PCM samples?

Hi,

I am trying to playback a voice stream decoded from
G.723. Obviously, I am facing with the raw PCM data
without any metadata. How can I use SDL to render the
run-time decoded stream? Is there any API I can use
just to drop the decoded voice sample(say 8000
samples/second) in and get the playback automatically?
Thank you.

Liang__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness

I am trying to playback a voice stream decoded from
G.723. Obviously, I am facing with the raw PCM data
without any metadata. How can I use SDL to render the
run-time decoded stream? Is there any API I can use
just to drop the decoded voice sample(say 8000
samples/second) in and get the playback automatically?

Do SDL_OpenAudio() and SDL_PauseAudio(0). The callback you specified to
SDL_OpenAudio will be used to take more of that PCM data. Just feed the
callback as much as it asks for, and feed it the next chunk of data the
next time it gets called.

–ryan.