I would like to ask some help regarding C++ sounds. I read some codes in playing sounds using C++ and this codes was based on WINDOWS. I would like to as if there is a possibility that I can play a wav file in LINUX using C++. I am a begginer in C++ and I really need your help guys.
Of course there is. I can think of way to many ways to do this. You can use a library that decodes the WAV format and play it using another library such as PortAudio, OpenAL, or even something like a sound server like Pulseaudio (bleh) or use the drivers on Linux directly through ALSA or OSS. It's entirely up to you. I know a few applications that use Pulseaudio directly and don't support direct ALSA or OSS support. This is BAD since some people do not like Pulseaudio and this takes away from the applications flexibilty and forces people to go through the trouble of installing Pulseaudio. You'll find yourself being flamed at if you say something like, "Everyone needs to get pulseaudio anyways!" since that's not the way a Linux user normally thinks.