0

I am playing a song as specified in the docs and it all works brilliantly. But how do I stop a song and clear the queue?

Thanks

Oscar

user3788339
  • 31
  • 1
  • 8
  • Show us some code so we know what we are working with. That makes it easier to formulate a bit more specific answer. – Rik Verbeek Nov 19 '14 at 19:25
  • read this first http://stackoverflow.com/questions/10283067/python-playing-music-with-pyglet-and-gui – midori Nov 19 '14 at 19:25

1 Answers1

1

The specs at http://www.pyglet.org/doc/programming_guide/controlling_playback.html say that there is no stop method and that to stop a song and clear the queue you have to, quoting "simply pause playback and discard the player and source objects". If you need to keep playing songs after this you would create a new player object.

Wa.
  • 141
  • 1
  • 7