home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sound Sensations!
/
sound_sensations.iso
/
soundb
/
sndhack
/
examp011.wsn
< prev
next >
Wrap
Text File
|
1991-07-28
|
582b
|
24 lines
;The call to SetVoiceThreshold sets the
;threshold level to 2 notes in this example.
;This causes the last notes in the voice
;queue to be lost since the last call to
;CloseSound() will flush the voice queue.
CloseSound();
OpenSound();
;Warning: Do not set the threshold level
;to 4 or greater in this example. This
;will cause the WaitSoundState to hang
;forever.
SetVoiceThreshold(1, 2);
SetVoiceNote(1, 1, 4, 0);
SetVoiceNote(1, 13, 4, 0);
SetVoiceNote(1, 25, 4, 0);
SetVoiceNote(1, 37, 4, 0);
StartSound();
WaitSoundState(S_THRESHOLD);
CloseSound();