diff options
Diffstat (limited to '')
-rw-r--r-- | src/audio.c | 8 |
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); |