On 24/05/2007, at 9:28 AM, andre v wrote:

> Hey,
>
> i need a sound lib and may fav is openAL but the pyOpenAL from soya  
> does not work well for me its (C++).  So used yours.  It looks like  
> you tried to wrap many different libs at once.  I tore out your  
> wrapper for al,alc, made my own wrapper for alut, now now debugging  
> wrappers ogg & verbs.  I wanted this as a separate project b/c i  
> want a mutliplaform openAL wrapper.
>

Hey.  Sounds good.  There are some scripts in the tools/ directory of  
pyglet that can wrap many C libraries; that's how the AL and ALC ones  
were done.  The scripts aren't perfect (some preprocessor features  
are not yet handled) but they could probably get through the ogg  
headers.

>
> Why did you-guys did not choose to go openAL/ogg route?

pyglet is designed to be cross-platform with (ideally) no external  
dependencies besides Python.  OGG is really only available on Linux  
unless the user downloads additional libraries.  We also want it to  
be able to play back many sound formats, not just one.  So, on Mac we  
use QuickTime, on Linux we use Gstreamer, and on Windows we use  
DirectShow.  On a "typical" install (this is somewhat arbitrary in  
Linux land, but well-defined for Windows and Mac) pyglet can play  
back WAV and MP3 files at the very least; on various platforms AU,  
AIFF, MOV, MID, WMA and OGG are also supported (probably more, too).


> I remmber some thing about this - a particular take on the sound  
> systems.  It looks like you tried to combine all the the sound  
> systems you could think of in on packedge.  Also how does this work  
> now and how it does not work?

We have separated out the decoding from playback.  On Mac and Linux  
we use OpenAL for playback, but on Windows this is not available in a  
fresh install, so we use DirectSound.  The feature sets are pretty  
much identical.

There is some documentation on how to use pyglet.media in pyglet/ 
media/__init__.py, but more extensive documentation will be written  
later.  This is the package most in-development at the moment; when  
it's complete pyglet will move towards a 1.0 release.

At time of writing the DirectSound implementation is not yet complete  
(no support for 3D positioning), but all other audio-related features  
are more or less ready.  Video playback is coming along nicely  
(Richard has made some great progress on the Mac implementation just  
in the last few day) but is further from completion.

> And what thoughts you have for me?

Watch out for OpenAL on Linux: the standard release (1.0) is very old  
and is missing a lot of features.  The current SVN trunk (1.1) is  
very buggy -- pitch-shifting doesn't work, and it won't play back  
stereo sound.  If you need stereo sound on Linux, use ALSA.

Let me know if you're interested in using pyglet.media without the  
windowing and OpenGL packages, I can probably make some changes to  
remove the dependencies on these.

Good luck!
Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to