home *** CD-ROM | disk | FTP | other *** search
/ Sound Sensations! / sound_sensations.iso / soundb / sndhack / examp004.wsn < prev    next >
Text File  |  1991-07-28  |  564b  |  21 lines

  1. ;The SetSoundNoise function seems to have
  2. ;no effect on the default sound driver.
  3. CloseSound();
  4. OpenSound();
  5. SetSoundNoise(S_PERIOD512, 10);
  6. SetVoiceNote(1, 50, 4, 0);
  7. SetVoiceSound(1, 0x01000001, 20);
  8. SetSoundNoise(S_PERIOD2048, 10);
  9. SetVoiceNote(1, 50, 4, 0);
  10. SetVoiceSound(1, 0x01000001, 20);
  11. SetSoundNoise(S_PERIODVOICE, 10);
  12. SetVoiceNote(1, 50, 4, 0);
  13. SetVoiceSound(1, 0x01000001, 20);
  14. SetSoundNoise(S_WHITEVOICE, 20);
  15. SetVoiceNote(1, 50, 4, 0);
  16. SetVoiceSound(1, 0x01000001, 20);
  17. StartSound();
  18. WaitSoundState(S_QUEUEEMPTY);
  19. CloseSound();
  20.  
  21.