On Sun, Nov 9, 2008 at 9:20 AM, Noyan Tokgozoglu <[EMAIL PROTECTED]> wrote:
>
> Is it possible to slow down sounds in pyglet? Like in slow motion
> sequences of movies etc where someone says "way" it goes "wooaaaaaaay"

Yes, if you're using the OpenAL sound driver.  Suppose snd is a sound
you want to play back slowly.  Do:

player = pyglet.media.Player()
player.queue(snd)
player.pitch = 0.5
player.play()

This will play at half speed so it will sound one octave down.

If you are using Windows or Linux you may have to install the latest
OpenAL sound drivers.  In Linux, especially, older OpenAL drivers are
very buggy (get OpenAL-soft).

To declare that you want to use OpenAL or nothing, at the beginning of
your program do:
pyglet.options['audio'] = ('openal', 'silent')
--
Nathan Whitehead

--~--~---------~--~----~------------~-------~--~----~
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