1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

AK+LibAudio+AudioServer: Silence very noisy debug statements by default

These are spammed quite heavily on the debug console, especially at the
end of audio playback.
This commit is contained in:
Timothy Flynn 2023-06-11 13:26:49 -04:00 committed by Andreas Kling
parent 976d9b32d6
commit 936ec94f81
4 changed files with 9 additions and 2 deletions

View file

@ -6,6 +6,7 @@
*/
#include <AK/Atomic.h>
#include <AK/Debug.h>
#include <AK/Format.h>
#include <AK/OwnPtr.h>
#include <AK/Time.h>
@ -97,7 +98,7 @@ void ConnectionToServer::custom_event(Core::CustomEvent&)
Array<Sample, AUDIO_BUFFER_SIZE> next_chunk;
while (true) {
if (m_user_queue->is_empty()) {
dbgln("Reached end of provided audio data, going to sleep");
dbgln_if(AUDIO_DEBUG, "Reached end of provided audio data, going to sleep");
break;
}