Pyglet - Stop a song from playing

2.2k Views Asked by At

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

1

There are 1 best solutions below

0
On

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.