Yes there is a way, if you have a sound queue'ed in the player you can check the sources duration like so:
self.sound = pyglet.media.load('sound.wav',streaming=False) self.player = pyglet.media.Player() self.player.queue(self.sound) print self.player.source.duration -- 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 pyglet-users+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.