Reputation: 31
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
Upvotes: 0
Views: 2244
Reputation: 141
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.
Upvotes: 1