ANN: ALPY, 3D spatial sounds in Python

Bram Stolk bram at sara.nl
Mon Nov 20 07:22:30 CET 2000


Announcement:

ALPY - The OpenAL/Python connection
version 1.0


I'm proud to announce ALPY, a layer between loki's OpenAL (see www.openal.org)
and Python (see www.python.org). ALPY is released under the GPL license.

ALPY allows you to create localized sound sources (in three dimensions)
by specifying a few simple things.

In Python script, this is a minimal test:

  from libal import *
  se = SoundEngine(22000);               # 22 KHz mix freq
  s  = SoundSource("softswitch.wav");
  s.SetPosition(-10,0,0);
  s.Play(1);                             # 1 for looping, 0 for single shot

Disclaimer: this is NOT a complete binding for the full OpenAL API.
Although I started out with this intention, I think that OpenAL is too low
level for a simple Python binding. Instead, the binding is a swigged (see 
www.swig.org) set of C++ classes.

For more info, Please see http://213.93.58.229/alpy/

-- 
------------------------------------------------------------------------------
 Bram Stolk, VR Specialist.
 SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP  AMSTERDAM
 email: bram at sara.nl   Phone +31-20-5923059  Fax +31-20-6683167

 "I heard if you play the NT-4.0-CD backwards, you get a satanic message."
 "Thats nothing, if you play it forward, it installs NT-4.0"
------------------------------------------------------------------------------



More information about the Python-list mailing list