aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_control.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-29 22:17:44 +0100
committerMax Kellermann <max@duempel.org>2008-10-29 22:17:44 +0100
commit0eae1c55adefc3e7509b2ef40f4da8baa3fe24ef (patch)
tree0d1c479cf14196441af2336d278ed0d306027b96 /src/output_control.h
parent678314534a08dbcbc1c642446f1af899a2108b57 (diff)
downloadmpd-0eae1c55adefc3e7509b2ef40f4da8baa3fe24ef.tar.gz
mpd-0eae1c55adefc3e7509b2ef40f4da8baa3fe24ef.tar.xz
mpd-0eae1c55adefc3e7509b2ef40f4da8baa3fe24ef.zip
output: moved code to audio_output_update()
Moved code from syncAudioDeviceStates() to audio_output_update().
Diffstat (limited to 'src/output_control.h')
-rw-r--r--src/output_control.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/output_control.h b/src/output_control.h
index b2b9a6c64..62e88eb0f 100644
--- a/src/output_control.h
+++ b/src/output_control.h
@@ -36,6 +36,13 @@ audio_output_open(struct audio_output *audioOutput,
const struct audio_format *audioFormat);
/**
+ * Opens or closes the device, depending on the "enabled" flag.
+ */
+void
+audio_output_update(struct audio_output *ao,
+ const struct audio_format *audio_format);
+
+/**
* Wakes up the audio output thread. This is part of a workaround for
* a deadlock bug, and should be removed as soon as the real cause is
* fixed. XXX