From a2eece0f5c0492e1a787c74706c85b3b68cb67c2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 15 Sep 2018 13:27:57 -0700 Subject: [PATCH] Log audio buffer size --- app/streaming/audio/renderers/sdlaud.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/streaming/audio/renderers/sdlaud.cpp b/app/streaming/audio/renderers/sdlaud.cpp index 42609480..a990680f 100644 --- a/app/streaming/audio/renderers/sdlaud.cpp +++ b/app/streaming/audio/renderers/sdlaud.cpp @@ -112,6 +112,16 @@ bool SdlAudioRenderer::prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* return false; } + SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, + "Desired audio buffer: %d samples (%d bytes)", + want.samples, + want.samples * sizeof(short) * want.channels); + + SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, + "Obtained audio buffer: %d samples (%d bytes)", + have.samples, + have.samples * sizeof(short) * have.channels); + // SDL counts pending samples in the queued // audio size using the WASAPI backend. This // includes silence, which can throw off our