Beep Function doesn't work

This is for discussing general topics about how to use VirtualBox.
Post Reply
Tailmon
Posts: 11
Joined: 22. Jul 2009, 04:26
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP Service pack 3, Kubuntu 9.04

Beep Function doesn't work

Post by Tailmon »

Well, I think that every programmer knows the WinApi function called Beep( Frequency ) and Borland C/C++ functions called sound, nosound, etc
ok, I was programming some things in virtual machines and I could watch that Virtualbox ignores those functions and also it ignores every System speaker call,
my question is why isn't it implemented in virtualbox?, why does virtualbox ignore every kind of System speaker call?
I tested with a windows 95 and windows XP guests in my Windows Vista Home premium x64 host and my Ubuntu 9.04 host, and either the result was the same, System speaker doesn't run

PD I have the system speaker coneccted in my host computer and my hosts programs that use it works excellent, only it doesn't work whih VBOx
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Beep Function doesn't work

Post by Sasquatch »

Recent computers no longer have a pc speaker in them. It doesn't matter if it's connected or not on the Host, Windows will always have this device, but as you noticed, VB doesn't work with it. They just didn't hook up the cable to the virtual motherboard. I'm guessing that it's too much trouble and annoyance to have it (ever worked with Linux in VMWare? It's a living nightmare where you hear a beep every time you use tab completion or go one character too far).

Only thing that you can do, is change your program code to use the sound card and play a sound using that (like the system error beep when you DO have an audio card installed).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Tailmon
Posts: 11
Joined: 22. Jul 2009, 04:26
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP Service pack 3, Kubuntu 9.04

Re: Beep Function doesn't work

Post by Tailmon »

Well, I was testing, and I could see that in VMware it works, but, I don't like Vmware :| (it's too heavy, and It doesn't have opengl aceleration :/)
and I couldn't use it, because, really I have to use the system beep (like I'm a student, some programs I have to do with some functions because the teacher says that I have to use it :()
only I have a question more, can I use some program or soft that it could redirect the beep calls to the sound card?
thanks for the answer, I wanted to confirm that :D
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Beep Function doesn't work

Post by Sasquatch »

Why shouldn't that be possible? I know that my laptop does it in hardware mode, I hear a beep through my laptop speakers instead a separate speaker. I know it's going through my sound card, because I can mute it with the audio keys :). Software should be able to do just that too. Shouldn't be too hard to find, now would it?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Tailmon
Posts: 11
Joined: 22. Jul 2009, 04:26
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP Service pack 3, Kubuntu 9.04

Re: Beep Function doesn't work

Post by Tailmon »

ok thanks for the answer, now I have to google it xD :D
Post Reply