Jiba a écrit :
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
I just downloaded the latest OpenAL SDK for Windows (version 1.1). In
the "include" directory, there's not "alctypes.h" or "altypes.h";
everything stands in 3 files : al.h, alc.h and efx.h (i think this last
file is Windows specific). Your "al.pxd" file will not compile on my
platform because of the "cdef extern from "AL/altypes.h"" and "cdef
extern from "AL/alctypes.h" statements.
I will test and send you modif as soon as i come back from a few weeks
of holidays.
Thomas
_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user