Click to See Complete Forum and Search --> : Beep Function


MagniB
May 9th, 2010, 08:26 AM
Hello,

I set the frequency to 700 and time to 1000ms, like this:

Beep(700, 1000);

But I can't hear the beeping sound on my laptop. Why is it? My laptop is Sony Vaio. Do laptops have internal speaker?

Thanks!

hoxsiew
May 9th, 2010, 09:08 AM
What is Beep? I don't think that's a winapi, nor std C/C++ call.

MagniB
May 9th, 2010, 09:14 AM
It's a WINAPI function. Read here: http://msdn.microsoft.com/en-us/library/ms679277(VS.85).aspx

Ajay Vijay
May 9th, 2010, 11:16 AM
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.

Chris_F
May 14th, 2010, 03:52 AM
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.

Ajay Vijay
May 14th, 2010, 12:04 PM
MSDN says:
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.

Chris_F
May 14th, 2010, 03:17 PM
MSDN says:

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.

golanshahar
August 6th, 2010, 10:06 AM
Hello,

I set the frequency to 700 and time to 1000ms, like this:

Beep(700, 1000);

But I can't hear the beeping sound on my laptop. Why is it? My laptop is Sony Vaio. Do laptops have internal speaker?

Thanks!

One thing you can try is open command line (run->cmd) and enter:

c:\>net start beep

it should enable the beep if it disabled.

Cheers

mani3355
August 12th, 2010, 12:50 AM
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