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

@@ -28,6 +28,7 @@
#include "mixer/Volume.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
#include "Idle.hxx"
#include "AudioFormat.hxx"
#include "ReplayGainConfig.hxx"
@@ -348,6 +349,7 @@ handle_replay_gain_mode(Client &client, Request args, Response &r)
}
client.partition.outputs.SetReplayGainMode(replay_gain_get_real_mode(client.playlist.queue.random));
client.partition.EmitIdle(IDLE_OPTIONS);
return CommandResult::OK;
}