aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_null.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_null.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/audioOutputs/audioOutput_null.c b/src/audioOutputs/audioOutput_null.c
index 28e58d49e..37e0ec0c8 100644
--- a/src/audioOutputs/audioOutput_null.c
+++ b/src/audioOutputs/audioOutput_null.c
@@ -20,15 +20,17 @@
#include "../timer.h"
static int null_initDriver(struct audio_output *audioOutput,
+ mpd_unused const struct audio_format *audio_format,
mpd_unused ConfigParam *param)
{
audioOutput->data = NULL;
return 0;
}
-static int null_openDevice(struct audio_output *audioOutput)
+static int null_openDevice(struct audio_output *audioOutput,
+ struct audio_format *audio_format)
{
- audioOutput->data = timer_new(&audioOutput->outAudioFormat);
+ audioOutput->data = timer_new(audio_format);
audioOutput->open = 1;
return 0;
}