SDL Blocking Audio

Here is something I was missing from SDL - non-callback driven
blocking audio. It is useful at times. I have attached a diff against
1.1 CVS and a little demo program.–
[ Below is a random fortune, which is unrelated to the above message. ]
Fifth Law of Procrastination:
Procrastination avoids boredom; one never has the feeling that
there is nothing important to do.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: blocking_audio.diff
Type: text/x-patch
Size: 3654 bytes
Desc: The actual patch
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000712/ec9a5813/attachment.bin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: testblockingaudio.c
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000712/ec9a5813/attachment.txt

David Hedbor writes:

Here is something I was missing from SDL - non-callback driven
blocking audio. It is useful at times. I have attached a diff against
1.1 CVS and a little demo program.

It was buggy - if you tried writing less than the buffer, it failed.
Here’s a patch. Please note that if you never write more than the
buffer, nothing will be heard. Should probably be a flush function
too, or something. Hmm.–
[ Below is a random fortune, which is unrelated to the above message. ]
Heavier than air flying machines are impossible.
– Lord Kelvin, President, Royal Society, c. 1895
-------------- next part --------------
A non-text attachment was scrubbed…
Name: blocking_audio.diff
Type: text/x-patch
Size: 3802 bytes
Desc: new patc
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000712/cbb34ed7/attachment.bin