user3788339
user3788339

Reputation: 31

Pyglet - Stop a song from playing

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

Answers (1)

Wa.
Wa.

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

Related Questions