PDA

View Full Version : SDL_Mixer and OGGs


Phil Steinmeyer
05-18-2006, 05:42 PM
OK, let me try a different SDL question here:

I'd like to use OGGs for my sound FX, as well as my music.

Mix_LoadMUS can load OGGs just fine, but only works for the special 'music' channel.

There appears to be no function equivalent to Mix_LoadWAV for loading OGGs.

If need be, I can do this ahead of time, caching out the uncompressed OGGs to WAVs. I'm open to using other libraries besides SDL_Mixer as well, but hopefully nothing too complex.

Suggestions?

luggage
05-18-2006, 06:21 PM
Never done much with SDL but we use http://audiere.sourceforge.net/

Very easy to use and supports a wide range of formats. I usually stream the music but not the sfx.

And it's free.

Phil Steinmeyer
05-18-2006, 06:26 PM
Stupid me, Mix_LoadWAV can load OGGs as well as WAVs.

Misleading name, though...