How to play sound with c++?

I'm curious about how to play sound in c++. The IDE I'm using are code::blocks and dev c++.

Please help.
As xismn pointed out, you could use OS specific function calls to do so. You could use system calls to load a program and song (like linux, I did system( "vlc break.mp3");[/code] (not really recommended). You could use the sound functions from libraries like Allegro, SFML, or SDL or look for a specific sound API. Other than that, would be stuck writing your own if you didn't want to use an existing one.
Last edited on
Topic archived. No new replies allowed.