aboutsummaryrefslogtreecommitdiffstats
path: root/src/Partition.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-21 08:55:52 +0100
committerMax Kellermann <max@duempel.org>2014-02-21 10:22:35 +0100
commit30a82076ba50a21c4df5fe4c46c8fc2ed25a7486 (patch)
tree6d7f28eb99c4e708d7b7609a203f78d565475c89 /src/Partition.cxx
parent860339c132f76ae6710b2d96851b3f55a273c1da (diff)
downloadmpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.tar.gz
mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.tar.xz
mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.zip
PlayerListener: new interface to replace GlobalEvents access
Diffstat (limited to 'src/Partition.cxx')
-rw-r--r--src/Partition.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx
index 512912f96..de1170557 100644
--- a/src/Partition.cxx
+++ b/src/Partition.cxx
@@ -23,6 +23,7 @@
#include "output/MultipleOutputs.hxx"
#include "mixer/Volume.hxx"
#include "Idle.hxx"
+#include "GlobalEvents.hxx"
#ifdef ENABLE_DATABASE
@@ -51,6 +52,18 @@ Partition::SyncWithPlayer()
}
void
+Partition::OnPlayerSync()
+{
+ GlobalEvents::Emit(GlobalEvents::PLAYLIST);
+}
+
+void
+Partition::OnPlayerTagModified()
+{
+ GlobalEvents::Emit(GlobalEvents::TAG);
+}
+
+void
Partition::OnMixerVolumeChanged(gcc_unused Mixer &mixer, gcc_unused int volume)
{
InvalidateHardwareVolume();