From 8d6fedf8177d0d2ced81e6d93d35c368b2ac69db Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Feb 2014 23:20:33 +0100 Subject: Mixer: add class MixerListener Use a listener interface instead of GlobalEvents. --- src/mixer/plugins/WinmmMixerPlugin.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mixer/plugins/WinmmMixerPlugin.cxx') diff --git a/src/mixer/plugins/WinmmMixerPlugin.cxx b/src/mixer/plugins/WinmmMixerPlugin.cxx index 6b81fa095..e0436011a 100644 --- a/src/mixer/plugins/WinmmMixerPlugin.cxx +++ b/src/mixer/plugins/WinmmMixerPlugin.cxx @@ -34,8 +34,8 @@ class WinmmMixer final : public Mixer { WinmmOutput &output; public: - WinmmMixer(WinmmOutput &_output) - :Mixer(winmm_mixer_plugin), + WinmmMixer(WinmmOutput &_output, MixerListener &_listener) + :Mixer(winmm_mixer_plugin, _listener), output(_output) { } @@ -68,10 +68,11 @@ winmm_volume_encode(int volume) static Mixer * winmm_mixer_init(gcc_unused EventLoop &event_loop, AudioOutput &ao, + MixerListener &listener, gcc_unused const config_param ¶m, gcc_unused Error &error) { - return new WinmmMixer((WinmmOutput &)ao); + return new WinmmMixer((WinmmOutput &)ao, listener); } int -- cgit v1.2.3