🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

how can i play wav files in vc++ 6.0?

Started by
2 comments, last by SigwarthSoft 24 years, 5 months ago
It''s meee!!!!! Thanx everybody for the help you gave me and the sources you''ve send me. It was a great help! In twenty minutes i discovered the relationship between the .h and .cpp files! duh i''m not stupid! ok thanx anyway... Ok, sorry, the question; whats the code for playing a wav file? Example: (not real code) if you press the left key: play wav file #1...... or somethinf like this. THANX AGAIN AND THANX IN ADVANCE AND NO MY CAPSLOCK ISN''T BLOCKING........ Sig
Advertisement
That all depends on what you are using. If you are using directX, then you need to load the wave data into a DSound buffer. Then the buffer has a method Play(...). If you are not using DirectX, then I have no idea. Oh yeah, if you need help finding a function that loads wave files email me.
BASSOFeeSH@aol.com
-- What would Sweetness do?
well in vb you just have a label and within it a pathname.. and then in the code sometghing like loadwav....
in vb.......
Sig
Or you could use PlaySound("somesound.wav", NULL, SND_FILENAME). But this isn''t very good for games.

This topic is closed to new replies.

Advertisement