[SDL] SDL_Mixer and streamed vorbis data

Kostas Kostiadis kos at climaxgroup.com
Fri Jun 1 04:59:07 PDT 2007


Hello all,

I'm decoding a video stream that contains video (theora) and audio (vorbis)
data.
I'm wondering if I can use SDL_Mixer to play the audio.

I'm guessing I can use Mix_QuickLoad_RAW to read the pcm data in, and then
use something like
Mix_PlayChannel to play the Mix_Chunk I get back (?)

Here comes the questions:

The docs read:
	Mix_Chunk *Mix_QuickLoad_RAW(Uint8 *mem)
mem
    Memory buffer containing a WAVE file in output format. 

1) How does that interface with the data you get back from
vorbis_synthesis_pcmout?
2) Vorbis stuff is 16 bit...i.e. you get back things in ogg_int16_t. Why is
QuickLoad taking in Uint8?

Cheers,
Kos.


More information about the SDL mailing list