summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index ae6974f..c78a213 100644
--- a/audio.c
+++ b/audio.c
@@ -903,8 +903,10 @@ void AudioInit(void)
int chan;
#ifndef DEBUG
- // display alsa error messages
+ // disable display alsa error messages
snd_lib_error_set_handler(AlsaNoopCallback);
+#else
+ (void)AlsaNoopCallback;
#endif
AlsaRingBuffer = RingBufferNew(48000 * 8 * 2); // ~1s 8ch 16bit