Advertisement

windows sound libraries

Started by December 22, 2000 07:35 AM
6 comments, last by PSioNiC 23 years, 10 months ago
im having trouble getting sounds working. they were working before but they stopped working for some reason (?) i included winmm.lib, and all the .h files that nehe included. still nothing. i copied my source code into nehe''s project (the one that does sound), still nothing there has to be something i forgot if anybody has any info leave a message thanks all
"This is stupid. I can't believe this! Ok, this time, there really IS a bug in the compiler."... 20 mins pass ..."I'M AN IDIOT!!!"
just make a test: does any program still play sounds?
If not, turn on your speakers or re-install your soundcard. Maybe there''s something wrong with the code, sometimes you change one line you don''t consider to be related to some stuff, but somehow it invokes with it. Another possibility is that your sound card is damaged (hopefully not)

Well you see it can depend on many things, you should provide us with some more hints!

cheerio
pi~

-------
HOLIDAYS! I''M FREE AT LAST!!!
Jan PieczkowskiBrainwave Studios
Advertisement
make sure your speakers are not plugged in to the modem. That happened to me once and it took me forever to find the problem--I thought the sound card or the speakers were blown.



Open mouth, insert foot
hehehe im a bit of a newbie but not that stupid guys

no when I compile the program windows say that PlaySound() and SND_SYNC are undeclared.

it looks as though i didn''t include winmm.h but i did
"This is stupid. I can't believe this! Ok, this time, there really IS a bug in the compiler."... 20 mins pass ..."I'M AN IDIOT!!!"
quote: Original post by PSioNiC

hehehe im a bit of a newbie but not that stupid guys

no when I compile the program windows say that PlaySound() and SND_SYNC are undeclared.

it looks as though i didn''t include winmm.h but i did


PlaySound(...) is declared in mmsystem.h, perhaps that''s why?
well, maybe your sound drivers are corrupt, windows can''t access the sound card, and therefore you can''t hear the sounds even though you''re telling Windows to play the sound. this could explain why it worked previously. just a thought.

JoeMont001@programmer.net www.polarisoft.n3.net
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Advertisement
i think you really forgot to include winmm.LIB... i can''t think of an other reason...
try to include it again, and if it doesn''t work, send us your code!

SnAkE''s Programming Resources

Put winmm.h in the source directory and add #include "winmm.h" also check that the file is OK.

Are you using precompiled headers?

This topic is closed to new replies.

Advertisement