diff options
Diffstat (limited to 'src/output/MultipleOutputs.cxx')
-rw-r--r-- | src/output/MultipleOutputs.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx index 71014e8d1..0639d51c7 100644 --- a/src/output/MultipleOutputs.cxx +++ b/src/output/MultipleOutputs.cxx @@ -141,6 +141,19 @@ MultipleOutputs::Add(std::unique_ptr<FilteredAudioOutput> output, } void +MultipleOutputs::AddCopy(AudioOutputControl *outputControl, + bool enable) noexcept +{ + // TODO: this operation needs to be protected with a mutex + outputs.emplace_back(std::make_unique<AudioOutputControl>(outputControl, + client)); + + outputs.back()->LockSetEnabled(enable); + + client.ApplyEnabled(); +} + +void MultipleOutputs::EnableDisable() { /* parallel execution */ |