[clean-list] Playing sounds
Jerzy Karczmarczuk
karczma@info.unicaen.fr
Tue, 18 Nov 2003 12:06:35 +0100
Ronny Wichers Schreur wrote:
> Jerzy Karczmarczuk writes (to the Clean discussion list):
>
>> The StdSound module in the last Clean is truncated, the call
>> to WinSoundPlay is commented out, 'playSoundFile' doesn't do
>> anything. Why?
...
> Peter's comment for this change is: "(PA) Uniform Object I/O dd.29
> juni '01.", where uniform means Mac/Windows.
>
>> WinSOundPlay exists of course, this is an inline code. Everything
>> finally goes to the winmm.dll, PlaySoundA@12. Ugh. "The buck
>> stops here"...
>
>
> My guess is that if you remove the comment it will just work (only
> on Windows, of course).
Alright, 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?
Can't really anybody there help me? This is really frustrating...
Jerzy Karczmarczuk