From 1aa734cb83f217c21de0ad6ca71f2b75ef5a7314 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 29 Sep 2022 22:52:42 +1000 Subject: [PATCH] 3rdparty/cubeb: Silence wasapi output frames logging unless mismatch --- 3rdparty/cubeb/src/cubeb_wasapi.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/3rdparty/cubeb/src/cubeb_wasapi.cpp b/3rdparty/cubeb/src/cubeb_wasapi.cpp index 7767b3a249..6bbaab5cff 100644 --- a/3rdparty/cubeb/src/cubeb_wasapi.cpp +++ b/3rdparty/cubeb/src/cubeb_wasapi.cpp @@ -1310,8 +1310,10 @@ refill_callback_output(cubeb_stream * stm) long got = refill(stm, nullptr, 0, output_buffer, output_frames); - ALOGV("Output callback: output frames requested: %Iu, got %ld", output_frames, - got); + if (got != output_frames) { + ALOGV("Output callback: output frames requested: %Iu, got %ld", output_frames, + got); + } if (got < 0) { return false; }