From 04a42d7b073a9e907a2269cad3e047dcd71f8818 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Wed, 17 May 2017 19:47:40 -0400 Subject: [PATCH] added warning when audio is underflowing --- src/sdl_host.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sdl_host.c b/src/sdl_host.c index 4cd4809d..762c5a99 100644 --- a/src/sdl_host.c +++ b/src/sdl_host.c @@ -122,6 +122,8 @@ static void audio_write_callback(struct SoundIoOutStream *outstream, } else { /* write out silence */ memset(tmp, 0, n * sizeof(tmp[0])); + + LOG_WARNING("wrote out %d frames of silence", n); } /* copy frames to output stream */