Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Chr(7) and the PC Speaker
Message
De
16/01/2003 11:08:51
 
 
À
16/01/2003 01:13:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00742016
Message ID:
00742426
Vues:
29
>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform