Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Playing a BEEP
Message
 
To
24/07/1998 15:11:31
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00120982
Message ID:
00121290
Views:
18
>Mark ---
>
>I'm almost certain that a sound card is required for that.
>
>
>>>Is there a way to play a BEEP in VFP besides CHR(7) on a machine without a sound card?
>>>
>>>CHR(7) does not have a consistent sound between machines and really can not be heard on some. Setting BEEP to a WAV file does not play on a machine without a sound card. What I would really like is to know if there is a BEEP that has tone and duration control.
>>
>>You could try:
>>procedure beep_beep
>>*
>>* nBeep = 0 default sound (no icon w.r.t. MessageBox)
>>* 16 critical stop (stop sign)
>>* 32 question (question mark)
>>* 48 exclamation (exclamation point)
>>* 64 asterisk (information symbol)
>>*
>>parameter nBeep
>>declare integer MessageBeep in Win32API ;
>> Integer nBeep
>>=MessageBeep(nBeep)
>>return
>>Don't know if sound card is required though. I don't have a machine without all this anymore to try it with.

Whatever the default sounds are associated with the events are used. I don't think you need a sound card unless the sounds associated with the events aren't simple ones. These days, however, I don't think you'll run into too many machines that aren't capable of play whatever sounds are necessary.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform