Page 1 of 1
Sound API of choice
Posted: Tue Feb 02, 2010 6:10 am
by Labman
What is your sound API of choice? I'm looking into implementing sound into my game prototype engine but I'm not sure which API to look at...
Cross platform would be a big plus. Currently I'm using OpenGL and SDL, so I would like to keep my platform options open with the sound API too.
Posted: Tue Feb 02, 2010 6:49 am
by c0burn
Posted: Tue Feb 02, 2010 1:29 pm
by dreadlorde
I'm pretty sure on Linux you will need to do some crap with ALSA and/or OSS if you want sound. I don't think you can just send sound to /dev/dsp or where ever and have it play...
Posted: Tue Feb 02, 2010 6:38 pm
by Spirit
That's why you simply use SDL and as a side effect get nice libraries for networking, input etc which are easily ported to Windows and the Mac too.
Posted: Tue Feb 02, 2010 9:03 pm
by c0burn
SDL has networking?
Posted: Tue Feb 02, 2010 9:14 pm
by Spike
the general recommendation for linux is to just use sdl for sound.
Reasoning: ALSA sucks more than the win3.1 api and has about as many bugs as there are stars in our galaxy. OSS is about as well supported as the win3.1 api, but does at least sound more like a farrari...
Really SDL is the most stress free and reliable way to get audio in linux. Be aware that it fills the output sound buffer in a separate thread, as required.
Using SDL gives you a quick and easy work around for all the bugs in the distribution's random choice of alsa version, or uses oss if the user knew how to install it and configure their system for it. It just magically works. Unlike ALSA.
I'm not personally aware of SDL having networking, but then I've never found BSD sockets to differ that much between the more important operating systems. You can generally just abstract the differences with a single header file and a few #defines.
Posted: Tue Feb 02, 2010 9:55 pm
by Teiman
c0burn wrote:SDL has networking?
SDL is somewhat like DirectX, has lots of "expansions".. and one is SDL_net.
Posted: Wed Feb 03, 2010 1:18 am
by Labman
I'm using SDL for window management and input currently, I was looking at it for sound but was wondering about other API's like openal might be a better choice.
Posted: Fri Jul 02, 2010 7:28 am
by calvincolins
Hey i think SDL for window management is work fine then why you want other API?
i think your current SDL is ok.
Posted: Fri Jul 02, 2010 12:07 pm
by revelator
SDL_sound
bitch to compile though
but it hooks into openal ogg/vorbis etc. so plenty choices.