Advertisement

PlaySound() plays nothing :)

Started by March 22, 2000 12:13 PM
2 comments, last by LordDeath 24 years, 9 months ago
I tried using the PlaySound() function to play a simple .wav file in my program, but when I try to build the program, it says PlaySound() unresolved external, or something. Can someone tell me what files I need included to use this function? I have windows.h, windowsx.h, and mmsystem.h included already. -Marc


In addition to having included mmsystem.h, you will need to link in the multi-media library winmm.lib. That should allow the linker to resolve the external.

HTH,

-mordell
__________________________________________

Yeah, sure... we are laughing WITH you ...
Advertisement
Hi, LordDeath, nice name...

I just uploaded some source code to my site, it''s not got a webpage there yet, but you can download the files.

You want to take a look at my MultipleSoundBuffer*.zip files, they will take you through everything you need, they include the sound manager, the project, the DInput routines for the keyboard presses, the lot, feel free to download and try them out, the project is probably what you need to check out, it''s all setup, so you shouldnt have any problems.

So, if you need some source that works, take it, just respect me ok, dont rip my code saying it''s yours and I''ll be happy.

This is the website....
http://mx1.xoom.com/KoshHome/

Might be some other stuff you wanna check out, same rules, just respect me and you''ll be ok

kosh
if understanding it made and born with time, then time, is understandings greatest enemy.....
Thank you both for your responses. I will look into it immediately. I am pretty sure I forgot the winmm.lib file as mordell said, also.

Thanks.

-LordDeath

This topic is closed to new replies.

Advertisement