SDL Sound Mixing and OGGs

Started by
2 comments, last by Mr Grinch 19 years, 7 months ago
SDL is looking like a really good alternative to using DirectX right now and I just wanted to check with you guys on a few things. I want to use Vorbis file lib to decode an OGG into a PCM buffer, I get that far but now I’m running into a few problems. SDL_MixAudio only supports two audio channel mixing and I’m having trouble figuring out how to play a PCM buffer. The docs recommended using SDL_mixer instead for more than two channel mixing but I haven’t found any documentation for that. Plus I’m having trouble finding out how to play a PCM buffer directly, SDL_LoadWAV is for loading a wave file. I’m sure there’s a simple way of doing this, I’m just not seeing it =(
Advertisement
http://kekkai.org/roger/sdl/mixer/index.html

In the first exemple, their play ogg sound file with SDL_Mixer no other lib.

Warlockzzz
Quote:Original post by Anonymous Poster
http://kekkai.org/roger/sdl/mixer/index.html

In the first exemple, their play ogg sound file with SDL_Mixer no other lib.

Warlockzzz


Nice link, thanks
Wha? I just started using SDL and SDL_mixer about two months ago and all I ever needed was the official documentation. I built a complete audio management system for my game in just a few days, I think its fairly straight forward. *shrugs*

Hero of Allacrost - A free, open-source 2D RPG in development.
Latest release June, 2015 - GameDev annoucement

This topic is closed to new replies.

Advertisement