home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chestnut's Multimedia Mania
/
MM_MANIA.ISO
/
players
/
sndhack
/
examp009.wsn
< prev
next >
Wrap
Text File
|
1991-07-28
|
709b
|
24 lines
;The SetVoiceSound function plays a
;sound specified by a frequency and
;length in clock tics.
CloseSound();
OpenSound();
SetVoiceSound(1, 0x01000000, 8); Freq : 0x0100 Hz
SetVoiceSound(1, 0x01200000, 8); Freq : 0x0200 Hz
SetVoiceSound(1, 0x01400000, 8); Freq : 0x0400 Hz
SetVoiceSound(1, 0x01800000, 8); Freq : 0x0800 Hz
SetVoiceSound(1, 0x01000000, 8); Repeat the pattern
SetVoiceSound(1, 0x01200000, 8);
SetVoiceSound(1, 0x01400000, 8);
SetVoiceSound(1, 0x01800000, 8);
SetVoiceSound(1, 0x01000000, 8); One more time
SetVoiceSound(1, 0x01200000, 8);
SetVoiceSound(1, 0x01400000, 8);
SetVoiceSound(1, 0x01800000, 8);
StartSound();
WaitSoundState(S_QUEUEEMPTY);
CloseSound();