Systemspeaker

  • Thread starter Thread starter Gert
  • Start date Start date
G

Gert

Which component I must include in my design to use the systemspeaker with
the function Beep()?
The function Beep() returned with error code 2 (ERROR_FILE_NOT_FOUND).

Thanks for help.

Gert.
 
There is a difference between the system speaker beep and Beep() in for
instance Visual Basic. The first can be generated by entering Ctrl-G in a
cmd box. The second uses the .wav file attached to the the event 'default
beep' (Control Panel-Sounds). So maybe you are missing a .wav file?

Hans
 
Gert said:
Which component I must include in my design to use the systemspeaker with
the function Beep()?
The function Beep() returned with error code 2 (ERROR_FILE_NOT_FOUND).

I use

Hardware: Devices: System Devices: System Speaker
Software: System: System Services: Base: Beep Driver (visibility only
200!)
 
There is a difference between the system speaker beep and Beep() in
for instance Visual Basic. The first can be generated by entering
Ctrl-G in a cmd box. The second uses the .wav file attached to the the
event 'default beep' (Control Panel-Sounds).

.... if appropriate hardware to play WAV files is installed. If not, Win32-
Beep() will still use the hardware beeper.
 
Hi,



You need to add the Beep Driver, but by default the driver is not visible.

So do the following steps:

Step1) Target Designer->Tools->Options->Advanced->Minimum Visibility

Choose an integer value in the range of 100 to 200

Every component in the database has a visibility level setting. You can use
the component visibility setting in the advanced tab of the options feature
to set a minimum visibility level, which keeps smaller or less significant
components from cluttering up the component browser list. The component list
in the component browser will display only the components which have a
visibility level greater than or equal to the specified minimum visibility
setting. It acts like a filter.



Step2) Target Designer->Software-> System-> System Services-> Base-> Beep
Driver

Step3) Target Designer->Hardware-> Devices-> System Devices-> System Speaker



We tested it before, we wrote an application with visual c++ using Beep
function and it works.

Also it is interested that in windows XP professional, if you want to enable
or disable your PC:

Go to Control Panel->System->Hardware->Device Manager->View->Show hidden
devices after that you'll see a new line: Non-Plug and Play Drivers if you
expand it, you'll see Beep.



Cheers

Amir Ahani

Software Developer

http://www.motionmetrics.com

(e-mail address removed)
 
Back
Top