-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
output/Command: trigger IDLE_OUTPUT only for the current partition
Closes #1622
- Loading branch information
1 parent
bdc5602
commit 553c2e9
Showing
3 changed files
with
23 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,37 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
// Copyright The Music Player Daemon Project | ||
|
||
#pragma once | ||
|
||
/* | ||
* Glue functions for controlling the audio outputs over the MPD | ||
* protocol. These functions perform extra validation on all | ||
* parameters, because they might be from an untrusted source. | ||
* | ||
*/ | ||
|
||
#ifndef MPD_OUTPUT_COMMAND_HXX | ||
#define MPD_OUTPUT_COMMAND_HXX | ||
|
||
class MultipleOutputs; | ||
class MixerMemento; | ||
struct Partition; | ||
|
||
/** | ||
* Enables an audio output. Returns false if the specified output | ||
* does not exist. | ||
*/ | ||
bool | ||
audio_output_enable_index(MultipleOutputs &outputs, | ||
MixerMemento &mixer_memento, | ||
audio_output_enable_index(Partition &partition, | ||
unsigned idx); | ||
|
||
/** | ||
* Disables an audio output. Returns false if the specified output | ||
* does not exist. | ||
*/ | ||
bool | ||
audio_output_disable_index(MultipleOutputs &outputs, | ||
MixerMemento &mixer_memento, | ||
audio_output_disable_index(Partition &partition, | ||
unsigned idx); | ||
|
||
/** | ||
* Toggles an audio output. Returns false if the specified output | ||
* does not exist. | ||
*/ | ||
bool | ||
audio_output_toggle_index(MultipleOutputs &outputs, | ||
MixerMemento &mixer_memento, | ||
audio_output_toggle_index(Partition &partition, | ||
unsigned idx); | ||
|
||
#endif |