Incorporating audio-input into SDL?

I’ve been working on an audio input library for SDL for some time:
http://burningsmell.org/sdl_audioin/ It works for Linux OSS and Windows.
I’ve been trying to develop more backends for it, like artsd, alsa, oss etc
– the audio output code works great as examples for audio input drivers of
the same library. :slight_smile:

The problem is, there’s a fair amount of overlap between SDL’s audio output
code and my audio input code. For the OSS driver, for example, the device
would get opened twice – once for input, once for output. For the arts
driver, the artsc library would get initialized twice and dynamically loaded
twice. And so forth. SDL’s also already solved the automake headaches I
have in configuring for so many different ugly libraries.

Given the number of emails I get about my lib, it’s definitely a functionality
people are using, and it’d make more sense program-wise to have it as a part
of SDL than to keep it ouside it. If I built a patch, might it be
incorporated into the SDL 1.3 branch?

Given the number of emails I get about my lib, it’s definitely a functionality
people are using, and it’d make more sense program-wise to have it as a part
of SDL than to keep it ouside it. If I built a patch, might it be
incorporated into the SDL 1.3 branch?

Sure! It looks good to me… comments?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Le Sat, 20 Aug 2005 12:07:14 -0700
Sam Lantinga a ?crit:

Given the number of emails I get about my lib, it’s definitely a
functionality people are using, and it’d make more sense
program-wise to have it as a part of SDL than to keep it ouside it.
If I built a patch, might it be
incorporated into the SDL 1.3 branch?

Sure! It looks good to me… comments?

Hmm, if audio input get incorporated in SDL, why not also add video
input (frame grabber devices, webcams, tv/video digitalizers, etc…).

[marketing]
Imagine seeing the face of your opponents in your SDL networked game!
[/marketing]

And something else that I already see as missing in current SDL:
converting surfaces between colorspaces (i.e. rgb <-> yuv <-> hsv <->
etc). But it may be limited to some specialized apps.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux