hey i just created a game of hangman in c++ with multiplayer facilities and stuff...but i wanted to add some music to it...could anyone help me??

Recommended Answers

All 3 Replies

Use the search box in the upper right corner - you'll find this topic has been discussed several times. What type music file do you want to use? Vegaseat wrote a good piece of code for playing MIDI files, and you'll find references to using playsound( ) in Windows for other audio file types (wav files, at least.)

i actually wanted to play in .wav formats

And a little hunting would find that this thread provides a sample of how to do that.

(Now I know how to make noisier programs, too :idea: )

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.