The REAL SDL13 audio input patch

OK, here’s the real patch, against the current CVS. Also attached is the test
program I used to prove audio input was working, which shows a basic ugly
512x512 audio scope.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl13-audioin.patch
Type: text/x-diff
Size: 16440 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050905/2f4d8d6e/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl13-test.c
Type: text/x-csrc
Size: 2639 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050905/2f4d8d6e/attachment.c
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl13-test.h
Type: text/x-chdr
Size: 900 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050905/2f4d8d6e/attachment.h

Tyler Montbriand wrote:

OK, here’s the real patch, against the current CVS. Also attached is the test
program I used to prove audio input was working, which shows a basic ugly
512x512 audio scope.

Is there a reason that audio input and output has to come from the same
device? This makes sense if you have a microphone plugged into an Audigy
card that is also outputting to speakers, but what if I want to play to
those speakers but capture from a USB headset like the one that ships
with SOCOM for the PS2, or use the microphone on a firewire iSight
camera (which has no audio output hardware at all)?

–ryan.

It greatly reduces the complexity of the code, and except for the OSS driver,
there’s no way to change which audio device input or output uses anyway.
Though I suppose with audio input support, people would have more reason to
want to use different devices…

So, good point. I’ll take a shot at adding that.On September 8, 2005 01:56 am, Ryan C. Gordon wrote:

Tyler Montbriand wrote:

OK, here’s the real patch, against the current CVS. Also attached is the
test program I used to prove audio input was working, which shows a basic
ugly 512x512 audio scope.

Is there a reason that audio input and output has to come from the same
device?