Is there an API only for sound?
APIs such as Allegro or SDL provide too much for my needs. I simply need a library that can do something like:
InitSound();
Sound *door = LoadSound("door.wav");
PlaySound(door,volume);
It would also be great if it could support compressed formats such as Vorbis or MP3.
I'm a big fan of the SFML library. It does provide additional graphics and network features, but what is relevant to this question, is that it also has neat audio package.
Audio features are:
Website: http://www.sfml-dev.org/
Use PortAudio. It is a portable cross-platform audio API.
If you are use to using OpenGL then you might like to try OpenAL?
The API is very similar to OpenGL so you should feel at home.
I really like SFML, it's written in C++ and follows most of the rules of good API design (RAII and so forth).
If you prefer a more "C-like" library, SDL needs to be mentioned.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With