Partition: add method EmitIdle()

Prepare for moving idle events to class Partition.  Right now, it's
just a wrapper for idle_add().
This commit is contained in:
Max Kellermann
2016-03-05 19:16:39 +01:00
parent e52ac0b187
commit b24a5e0662
7 changed files with 21 additions and 13 deletions

View File

@@ -53,6 +53,8 @@ struct Partition final : private PlayerListener, private MixerListener {
outputs(*this),
pc(*this, outputs, buffer_chunks, buffered_before_play) {}
void EmitIdle(unsigned mask);
void ClearQueue() {
playlist.Clear(pc);
}