help: Crossplattform audio functionality in Python

Gerhard Häring gh_pythonlist at gmx.de
Thu Oct 11 11:37:20 EDT 2001


On Thu, Oct 11, 2001 at 03:03:37PM +0000, Olov Johansson wrote:
> Hello all,
> I recently had my first serious look at Python and like it for many reasons.
> I'm trying to get a grip on it's capabilities and limits and as a result of
> that..:
> 
> How is the crossplatform sound support? From what I found in the
> documentation (2.1.1) there is Al (SGI), sunaudiodev (SunOS) and winsound
> (win32 and very limited). I want something that gives me a soundbuffer I can
> write to, and I'd like it to work on at least Linux (OSS/ALSA) and Windows.
> [...]

pygame (http://www.pygame.org/) contains a sound library that works on
*nix and Windows. It is based on several SDL libraries, so for
cross-platform sound only, it might be overkill. But it's cool stuff
nevertheless.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list