PlayerListener: new interface to replace GlobalEvents access

This commit is contained in:
Max Kellermann
2014-02-21 08:55:52 +01:00
parent 860339c132
commit 30a82076ba
8 changed files with 76 additions and 14 deletions

View File

@@ -23,6 +23,7 @@
#include "output/MultipleOutputs.hxx"
#include "mixer/Volume.hxx"
#include "Idle.hxx"
#include "GlobalEvents.hxx"
#ifdef ENABLE_DATABASE
@@ -50,6 +51,18 @@ Partition::SyncWithPlayer()
playlist.SyncWithPlayer(pc);
}
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)
{