From e89c9769f9eed479ce61b8314d80e1821dd46b66 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 24 May 2004 22:29:04 +0000 Subject: allow any sampleRate > 0? git-svn-id: https://svn.musicpd.org/mpd/trunk@1150 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audio.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/audio.c b/src/audio.c index e340771ca..afea52734 100644 --- a/src/audio.c +++ b/src/audio.c @@ -149,7 +149,7 @@ void initAudioConfig() { exit(EXIT_FAILURE); } - switch(audio_configFormat->sampleRate) { + /*switch(audio_configFormat->sampleRate) { case 48000: case 44100: case 32000: @@ -159,6 +159,12 @@ void initAudioConfig() { ERROR("sample rate %i can not be used for audio output\n", (int)audio_configFormat->sampleRate); exit(EXIT_FAILURE); + }*/ + + if(audio_configFormat->sampleRate <= 0) { + ERROR("sample rate %i is not >= 0\n", + (int)audio_configFormat->sampleRate); + exit(EXIT_FAILURE); } audio_configFormat->bits = strtol(test+1,&test,10); -- cgit v1.2.3