aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_control.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output_control.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/output_control.c b/src/output_control.c
index 9193e92eb..142ac765e 100644
--- a/src/output_control.c
+++ b/src/output_control.c
@@ -90,6 +90,16 @@ audio_output_open(struct audio_output *audioOutput,
}
void
+audio_output_update(struct audio_output *ao,
+ const struct audio_format *audio_format)
+{
+ if (ao->enabled)
+ audio_output_open(ao, audio_format);
+ else if (audio_output_is_open(ao))
+ audio_output_close(ao);
+}
+
+void
audio_output_signal(struct audio_output *ao)
{
notify_signal(&ao->notify);