aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-24 22:29:04 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-24 22:29:04 +0000
commite89c9769f9eed479ce61b8314d80e1821dd46b66 (patch)
treef5008db01cc1047cd7d7ff19d35f127a82a1590f
parent3c75535eaeb295082df1c28879e66ddd385f539e (diff)
downloadmpd-e89c9769f9eed479ce61b8314d80e1821dd46b66.tar.gz
mpd-e89c9769f9eed479ce61b8314d80e1821dd46b66.tar.xz
mpd-e89c9769f9eed479ce61b8314d80e1821dd46b66.zip
allow any sampleRate > 0?
git-svn-id: https://svn.musicpd.org/mpd/trunk@1150 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/audio.c8
1 files changed, 7 insertions, 1 deletions
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);