My dear Friends
how to make my program make beep or play a windows system sound in vpi 10 ,
elderly i was using vpi::beep predicate which is retired now ,
I tried to use
platformSupport5x::sound(50, 1000).
but it is not cute ,
Is there any elegant way to use multiple sound beeps with different tones .
- Thomas Linder Puls
- VIP Member
- Posts: 1327
- Joined: 28 Feb 2000 0:01
Re: How to make vpi 10 play system sounds
Well platform5x::sound is just calling environment_native::beep:
You can to the same yourself.
However, beeps from computers are really "deprecated". But it is of course up to you.
Code: Select all
clauses
sound(Duration, Frequency) :-
if 0 = environment_native::beep(Frequency, Duration) then
LastError = exception::getLastError(),
exception::raise_nativeCallException("Beep", LastError, [])
end if.
However, beeps from computers are really "deprecated". But it is of course up to you.
Regards Thomas Linder Puls
PDC
PDC
-
- VIP Member
- Posts: 407
- Joined: 5 Nov 2000 0:01
Re: How to make vpi 10 play system sounds
vpi:alarm/1 is convenient.
Re: How to make vpi 10 play system sounds
Ohh))) I have a question about system sounds:
How can I ask the system ignore my VIP programm with all this charming system "blum-blam-blim"?!
Thank you in advance...
How can I ask the system ignore my VIP programm with all this charming system "blum-blam-blim"?!
Thank you in advance...