Jump to content
  • Advertisement
Sign in to follow this  
MrRage

SDL Sound Mixing and OGGs

This topic is 5038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 =(

Share this post


Link to post
Share on other sites
Advertisement
Guest 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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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*

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!