(original) (raw)
What I'd like to see:
I like the idea of having audio device support for the major operating
systems in the standard library.
But I am even more interested in a common interface for simple operations.
IMO, the API should support:
- stereo playback
- stereo recording
- different sampling rates and formats (alaw, mulaw and PCM in signed
integers in various widths and maybe PCM in floats/doubles).
- device selection
- volume control
Overall, I think the level of abstraction in the OSS or ALSA APIs is
about right, coreaudio on OS X and DirectSound on Windows are overkill
outside of niche applications.
I would volunteer sample implementations for Windows, OS X and Linux (ALSA).
- Lars
That sounds like a nice basic simple interface. I suggest writing it up and submitting it as a patch or even making it stand alone module with its own distutils
setup.py. It sounds like a good idea regardless of it its accepted into the standard library. (clearly what we have now for python audio is a mess :)
-gps