Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chr(7) and the PC Speaker
Message
From
16/01/2003 11:08:51
 
 
To
16/01/2003 01:13:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00742016
Message ID:
00742426
Views:
28
>>>>At my WorkStation CHR(7) doesn't beep. Fred Script works fine. What's the issue here?
>>
>>>Set Console On before running ? CHR(7)
>>
>>Done, but isn't work, still doesn't beeping with PC Speakers.
>
>Esparta, I dont know. Maybe SteveG is right and your PC needs as a minimum a sound driver for the internal speaker?

Making the API call to beep() would be less CPU intensive than a sound driver. My understanding is there used to be (Win98 and before) sound drivers available to use the internal speaker, and you could even play .WAV files. However, with no sound card, the sound driver would have to use the CPU to create the sound.

And, the CPU would be tied up until the sound finished playing...

Ideally, an app would check to see if a sound card (or driver) is installed, and would call beep() (instead of ? chr(7)) if there isn't one.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform