Beep() ?

closed account (13bSLyTq)
Hi,

I was testing something and for some reason beep() is failing on WIndows 7. I used it millions of times before but this is first time its doing this:
1
2
3
4
5
6
7
8
#include<Windows.h>
#include<iostream>

int main()
{
	Beep(10000,1000);
	return 0;
}	


any clue!!!
In what way is it failing? Does it crash or do you just not hear anything? have you turned on the speakers and is the sound volume high enough?
It works fine for me. Windows 7 SP1 32 bit. However the sound is played on default sound card, not on the motherboard speaker (this behaviour is changed starting with windows 7).
Topic archived. No new replies allowed.