aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audio.c8
-rw-r--r--src/audio.h4
2 files changed, 11 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index a4445ac54..7f51a31d9 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -42,6 +42,12 @@ static unsigned int audioOutputArraySize;
unsigned int audio_output_count(void)
{
+ return audioOutputArraySize;
+}
+
+static unsigned
+audio_output_config_count(void)
+{
unsigned int nr = 0;
const struct config_param *param = NULL;
@@ -60,7 +66,7 @@ void initAudioDriver(void)
notify_init(&audio_output_client_notify);
- audioOutputArraySize = audio_output_count();
+ audioOutputArraySize = audio_output_config_count();
audioOutputArray = g_new(struct audio_output, audioOutputArraySize);
for (i = 0; i < audioOutputArraySize; i++)
diff --git a/src/audio.h b/src/audio.h
index c20f74f54..c42d27d5e 100644
--- a/src/audio.h
+++ b/src/audio.h
@@ -29,6 +29,10 @@ struct tag;
struct client;
struct config_param;
+/**
+ * Returns the total number of audio output devices, including those
+ * who are disabled right now.
+ */
unsigned int audio_output_count(void);
void getOutputAudioFormat(const struct audio_format *inFormat,