I need an audio library for C++ that is capable of:
- playing a lot of wave files (up to 32) simultaneously / parallelly but also independently
- seamlessly looping these wave files
- changing the volume of these wave files individually
- providing information about the position (in samples) of all currently playing wave files
- fading wave files in/out from and to runtime specified positions (in samples)
- jumping to runtime specified positions (in samples) of wave files
I was thinking about SDL at first, but it seems SDL can't really do most of the things I need, especially anything with samples.
So, anyone have a suggestion? The library should be free at least for non-commercial use, to be used with either VC++ or MinGW (g++).
Thanks in advance.
Need C++ Audio Library
try FMOD, it's free if you don't use it commercially, and as far as I know it's the best audio lib for games.
BASS is also a good lib for playing audio files, it is the most suitable lib for audio players, and it's free for non-commercial use like fmod.
you can also check out OpenAL (better alternative OpenAL Soft - http://kcat.strangesoft.net/openal.html)
it's also open source
BASS is also a good lib for playing audio files, it is the most suitable lib for audio players, and it's free for non-commercial use like fmod.
you can also check out OpenAL (better alternative OpenAL Soft - http://kcat.strangesoft.net/openal.html)
it's also open source
Quote:Original post by sepul
you can also check out OpenAL (better alternative OpenAL Soft - http://kcat.strangesoft.net/openal.html)
it's also open source
Based on what is OpenAL Soft "better"?
I assume you compare it to proprietary OpenAL implementations.
" (- providing information about the position (in samples) of all currently playing wave files)"
A few years back I made a music rhythm game, and I was syncing sprite movement to music. FMOD was the only lib that could do this reliable. I looked at all sound libs available and FMOD is really the best one.
A few years back I made a music rhythm game, and I was syncing sprite movement to music. FMOD was the only lib that could do this reliable. I looked at all sound libs available and FMOD is really the best one.
I personally use SFML for audio. SFML is something simular to SDL, a multimadia API that is capable for alot of things including audio. Good thing about SFML is that it's lightweight and you can just take from it whatever you need. You can just use it for audio and skip the whole graphics part.
SFML has a very nice license, you can just use static linking and use it for free without any restrictions. If you use FMOD you can't go commercial or you'd have to pay.
http://www.sfml-dev.org/
SFML has a very nice license, you can just use static linking and use it for free without any restrictions. If you use FMOD you can't go commercial or you'd have to pay.
http://www.sfml-dev.org/
Quote:originally posted by Toadhead
SFML has a very nice license, you can just use static linking and use it for free without any restrictions. If you use FMOD you can't go commercial or you'd have to pay.
Be aware that portions of SFML are handled using other libraries under different licenses. Though each of these licenses allow commercial use, you cannot legally statically link with everything.
http://www.sfml-dev.org/license.php
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement