Hello,
It works great! thanks!
I have two questions though:
1. Is there a built in way of checking if the sound is in front or behind the listener? 2. Is there a way to get a player object to play as if I was playing from a loaded sound object? For example:
sound = mixer.load("run5.wav", streaming=False)
player = mixer.Player()

#what I would like:
@my_app.event
def on_key_press(key, mods):
    if key == k.Space:
        sound.play()

#What I would like to work like the above:
@my_app.event
def on_key_press(key, mods):
    if key == K.SPACE:
        player.queue(sound)
        player.play()

I can create this by creating a new sound object each time, but I really would like something built in for this. Is there such a thing?
thanks,

Brandon Keith Biggs <http://www.brandonkeithbiggs.com/>
On 6/3/2015 8:24 AM, Rob van der Most wrote:

Whoopsee, will fix that. I did a lot of debugging in the media code :-).

Rob

On 3 Jun 2015 08:02, <[email protected] <mailto:[email protected]>> wrote:

    Seems to be working great so far, OpenAL doesn't explode when I
    force load it anymore, so i'd call that a win.

    So far the only thing i've noticed is an uncommented debug line in
    pyglet\media\drivers\openal\__init__.py, line 470:

    |
    print(self._al_source,buffer_name)
    |

    Prints out a couple of ctypes to console whenever I play a sound.
-- You received this message because you are subscribed to the Google
    Groups "pyglet-users" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected]
    <mailto:[email protected]>.
    To post to this group, send email to [email protected]
    <mailto:[email protected]>.
    Visit this group at http://groups.google.com/group/pyglet-users.
    For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to