Hi all,
A new sound API is available in Soya's SVN.
This new sound API is integrated in Soya, and links directly to OpenAL. It thus
gets the rid of PyOpenAL, and i hope it will compile under windows. If you
don't want / have OpenAL, you can disable it by changing "USE_OPENAL = 1" to
"USE_OPENAL = 0" at the beginning of setup.py.
The new sound API uses a kind of "streaming" which allows it to start playing
big music files immediately, without having to read the whole file. The API
itself is very "Soya-ish", as sounds being played are considered as 3D objects
(inheriting from CoordSyst). To play a sound:
sound = soya.Sound.get("test.wav")
sound_player = soya.SoundPlayer(parent, sound)
(See the sound-1.py tutorial for an example)
Another interesting consequence is that SoundPlayer object can be saved. When
loaded, the sound restart (about) at the same position. It can be used to save
e.g. noises in a game level like a factory.
The old pyopenal4soya module will be kept for backward compatibility.
Jiba
_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user