[clean-list] Playing sounds
John van Groningen
johnvg@cs.kun.nl
Wed, 19 Nov 2003 11:16:07 +0100
Jerzy Karczmarczuk writes:
>lright, plus some superficial bugs such as WinSoundPlay =-=> winSoundPlay...
>Thank you, I discovered that. So I might in principle generate a binary .wav
>file and to play it after having read it back.
>
>But my *MAIN* problem persists : how to play from an internal buffer... How to
>do it asynchronously?
There is a windows waveOut interface tutorial at:
http://www.insomniavisions.com/documents/tutorials/wave.php
or:
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=4422&lngWId=3
It includes C source code to play a wav file using buffers of 8k. Adding
a Clean interface for this code should not be that much work.
Regards,
John van Groningen