I have spent lots of time trying to get sound to play for a battleship program I'm working on.
I am trying to use this: SOUNDPLAY("sound\\.wav" , NULL, SND_ASYNC); to play sound . What am I missing or needing to change? As you can tell, I'm extremely new to programming and need help.
Thanks,
John
P.S. I can copy the entire code if you need to see that as well.
Are you attempting to use a library? If so, which one?
C++ inherently doesn't do anything like that and you would have to link it to your library correctly in order to pull it off. Can you give us some more information?
I would recommend either OpenAL, or SDL mixer. I use openAL, and it's nice because the same code works for linux, mac, windows etc. You can play many sounds at once if you want.
If you need help getting your openAL environment setup, or getting a hello world play a sound program going in openAL, you can post your question back here, and I'll see if I can help.