Sound in C++?

Feb 21, 2013 at 5:34pm
OK, I know some people say it's not so good, but I do use Bloodshed's Dev-C++, and it fulfills my purposes just fine. But the thing I want to do is add sound to my C++ program, and I am currently using Allegro. I am unable to use Playsound, and OpenAL is too sophisticated for my needs. I just need a simple library, that's library, that can allow me to at least play .wav and .mp3 sound files. This is just for background noise/music, not for some open-area 3D game. If anyone can point me in the direction of a good sound library that IS NOT Playsound or OpenAL, that would be very, very helpfull. Thank you.
Feb 21, 2013 at 6:09pm
Feb 21, 2013 at 8:07pm
It is not your IDE's problem that you can't play sounds.

Code is thing that matter and how you compile it (#includes) :) I think there is some way to determine compiler arguments in dev-c++ but i don't know how.

Take your time to understand peter's answer
Feb 21, 2013 at 11:26pm
closed account (Dy7SLyTq)
sfml
Feb 26, 2013 at 5:46pm
I found SFML to be too complicated. Mainly because it's both audio and graphics, and I already use Allegro. My current Allegro version is 4.1, and I don't think audio is supported in that version, so I might try to update it. If not, I found a seemingly good one called PortAudio. Thank you for your suggestions!
Feb 26, 2013 at 6:45pm
Surely you can just #include <SFML/Audio.hpp> ...?

You don't need to use it for graphics.
Last edited on Feb 26, 2013 at 6:45pm
Feb 26, 2013 at 11:12pm
Yes, but the download is for both, and i don't want space taken up with unneeded stuff, and PortAudio seems to be quite fine
Feb 27, 2013 at 2:40am
closed account (Dy7SLyTq)
openAL?
Feb 27, 2013 at 3:11am
He already said he's using PortAudio and it's working for him.
Feb 27, 2013 at 6:44am
Use BASS library, works on windows, linux, etc most games uses it, it is free, has example code and it is only a small DLL of about 100KB:
http://www.un4seen.com/
Topic archived. No new replies allowed.