Jump to content
  • Advertisement
Sign in to follow this  
AndG

Need C++ Audio Library

This topic is 2904 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

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.

Share this post


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

Share this post


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

Share this post


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

Share this post


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

Share this post


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

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!