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

  1. ; Be careful when setting the voice queue
  2. ; size.  If it is set too small, subsequent
  3. ; requests to queue items to a voice queue
  4. ; will fail.
  5. CloseSound();
  6. OpenSound();
  7. SetVoiceQueueSize(1, 10);  10 bytes is too small!!
  8. SetVoiceNote(1, C4, 4, 0);  
  9. SetVoiceNote(1, C1, 4, 0);  This request will fail!
  10. SetVoiceNote(1, C1, 8, 0); 
  11. SetVoiceNote(1, C1, 4, 0); 
  12. StartSound();
  13. WaitSoundState(S_QUEUEEMPTY);
  14. CloseSound();
  15.  
  16.