Hello,
I set the frequency to 700 and time to 1000ms, like this:
But I can't hear the beeping sound on my laptop. Why is it? My laptop is Sony Vaio. Do laptops have internal speaker?Code:Beep(700, 1000);
Thanks!
Printable View
Hello,
I set the frequency to 700 and time to 1000ms, like this:
But I can't hear the beeping sound on my laptop. Why is it? My laptop is Sony Vaio. Do laptops have internal speaker?Code:Beep(700, 1000);
Thanks!
What is Beep? I don't think that's a winapi, nor std C/C++ call.
It's a WINAPI function. Read here: http://msdn.microsoft.com/en-us/libr...77(VS.85).aspx
Beep's output comes from system's internal speaker, which is generally on motherboards. Not all mother boards have this. The sound will not come from normal speakers. You can use PlaySound API instead.
Ajay Vijay: Don't be so sure about that.
In Windows 7 Beep is actually played thought the system sound output. You can in fact mute or lower the volume.
Isn't very clean though. I imagine it's not used for much.
MSDN says:
Quote:
Muting and volume control have no effect on Beep; you will still hear the tone. To silence the tone, use the following commands:
net stop beep
sc config beep start= disabled
Terminal Services: The beep is redirected to the client.
Windows Me/98/95: On computers with a sound card, the function plays the default sound event. On computers without a sound card, the function plays the standard system beep.
I read that too. Seems to be outdated. My guess it it had changed in either Vista or 7. Beep() on my computer actually plays a tone of x frequency for y duration through the sound system (in this case my headphones) thought it is kinda gritty as there is a noticeable pop every time Beep is called.
hi,
My Laptop(Sony Vaio) i can't hear beep voice. Pl. tell to why it is not hearing a beeping?
will suggest to more information. I hope to soon reply
thanks in advance
regards,
phe9oxis,
http://www.guidebuddha.com