From f066bb7716200a83e209d27f6b4f87f012033266 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Sep 2015 23:13:53 +0200 Subject: unix/Daemon, playlist/...: remove unused Domain variables --- src/output/plugins/PipeOutputPlugin.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/output') diff --git a/src/output/plugins/PipeOutputPlugin.cxx b/src/output/plugins/PipeOutputPlugin.cxx index 7a1f32258..d8075d505 100644 --- a/src/output/plugins/PipeOutputPlugin.cxx +++ b/src/output/plugins/PipeOutputPlugin.cxx @@ -22,7 +22,6 @@ #include "../OutputAPI.hxx" #include "config/ConfigError.hxx" #include "util/Error.hxx" -#include "util/Domain.hxx" #include @@ -44,8 +43,6 @@ struct PipeOutput { bool Configure(const config_param ¶m, Error &error); }; -static constexpr Domain pipe_output_domain("pipe_output"); - inline bool PipeOutput::Configure(const config_param ¶m, Error &error) { -- cgit v1.2.3 From ac61d43720393803cb3f6bc5c74aea588e1ca68d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 26 Oct 2015 16:29:07 +0100 Subject: output/Command: flush the mixer cache when enabling/disabling output Fixes mixer lag (http://bugs.musicpd.org/view.php?id=4425). --- src/output/OutputCommand.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/output') diff --git a/src/output/OutputCommand.cxx b/src/output/OutputCommand.cxx index 6afb70cf1..e6b8a8e7f 100644 --- a/src/output/OutputCommand.cxx +++ b/src/output/OutputCommand.cxx @@ -30,6 +30,7 @@ #include "Internal.hxx" #include "PlayerControl.hxx" #include "mixer/MixerControl.hxx" +#include "mixer/Volume.hxx" #include "Idle.hxx" extern unsigned audio_output_state_version; @@ -47,6 +48,11 @@ audio_output_enable_index(MultipleOutputs &outputs, unsigned idx) ao.enabled = true; idle_add(IDLE_OUTPUT); + if (ao.mixer != nullptr) { + InvalidateHardwareVolume(); + idle_add(IDLE_MIXER); + } + ao.player_control->UpdateAudio(); ++audio_output_state_version; @@ -70,6 +76,7 @@ audio_output_disable_index(MultipleOutputs &outputs, unsigned idx) Mixer *mixer = ao.mixer; if (mixer != nullptr) { mixer_close(mixer); + InvalidateHardwareVolume(); idle_add(IDLE_MIXER); } @@ -94,6 +101,7 @@ audio_output_toggle_index(MultipleOutputs &outputs, unsigned idx) Mixer *mixer = ao.mixer; if (mixer != nullptr) { mixer_close(mixer); + InvalidateHardwareVolume(); idle_add(IDLE_MIXER); } } -- cgit v1.2.3