aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-11 18:02:45 +0100
committerMax Kellermann <max@duempel.org>2009-02-11 18:02:45 +0100
commit9d447dda1da059105d0f5da92be384c5e2b57df3 (patch)
treea861a7a842fb318c266e48a7f365061985a2e340 /src/audio.c
parent3bc4224bfda5ebf9cd6969ea0f6647b1af3e9da6 (diff)
downloadmpd-9d447dda1da059105d0f5da92be384c5e2b57df3.tar.gz
mpd-9d447dda1da059105d0f5da92be384c5e2b57df3.tar.xz
mpd-9d447dda1da059105d0f5da92be384c5e2b57df3.zip
audio: moved code to output_command.c
The output_command library provides a command interface to the audio outputs. It assumes the input comes from an untrusted source (i.e. the client) and verifies all parameters.
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/audio.c b/src/audio.c
index eef8d2de8..47916a5f7 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -19,12 +19,8 @@
#include "audio.h"
#include "audio_format.h"
#include "audio_parser.h"
-#include "output_api.h"
-#include "output_control.h"
#include "output_internal.h"
#include "output_all.h"
-#include "path.h"
-#include "idle.h"
#include "mixer_api.h"
#include <glib.h>
@@ -63,37 +59,6 @@ void finishAudioConfig(void)
audio_format_clear(&configured_audio_format);
}
-int enableAudioDevice(unsigned int device)
-{
- struct audio_output *ao;
-
- if (device >= audio_output_count())
- return -1;
-
- ao = audio_output_get(device);
-
- ao->reopen_after = 0;
- ao->enabled = true;
- idle_add(IDLE_OUTPUT);
-
- return 0;
-}
-
-int disableAudioDevice(unsigned int device)
-{
- struct audio_output *ao;
-
- if (device >= audio_output_count())
- return -1;
-
- ao = audio_output_get(device);
-
- ao->enabled = false;
- idle_add(IDLE_OUTPUT);
-
- return 0;
-}
-
bool mixer_control_setvol(unsigned int device, int volume, int rel)
{
struct audio_output *output;