From 2d969813e0d3e8711fb785f403ebc325ff8fbd84 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 14 Jul 2024 11:58:15 +0200 Subject: [PATCH] Improve logging --- source/utils/SplashSoundPlayer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/utils/SplashSoundPlayer.cpp b/source/utils/SplashSoundPlayer.cpp index 31e81bc..c1f468b 100644 --- a/source/utils/SplashSoundPlayer.cpp +++ b/source/utils/SplashSoundPlayer.cpp @@ -32,7 +32,7 @@ SplashSoundPlayer::SplashSoundPlayer(std::string_view meta_dir) { void SplashSoundPlayer::Play() { if (mBuffer.empty() || mBuffer.size() < 8) { - DEBUG_FUNCTION_LINE_WARN("mBuffed is empty or too small"); + DEBUG_FUNCTION_LINE_WARN("mBuffer is empty or too small"); return; } AXTransitionAudioBuffer transitionAudioBuffer = {}; @@ -44,10 +44,10 @@ void SplashSoundPlayer::Play() { AXGetDeviceMode(1, &drcMode); AXQuit(); - WHBLogPrintf("TV mode before transition = %d\n", tvMode); + WHBLogPrintf("TV mode before transition = %d", tvMode); transitionAudioBuffer.tv.mode = tvMode; - WHBLogPrintf("DRC mode before transition = %d\n", drcMode); + WHBLogPrintf("DRC mode before transition = %d", drcMode); transitionAudioBuffer.drc.mode = drcMode; transitionAudioBuffer.unk1 = 1; @@ -78,13 +78,13 @@ void SplashSoundPlayer::Play() { uint32_t audioBufferLen = 0; auto res = __OSGetTransitionAudioBuffer(&audioBuffer, &audioBufferLen); if (res == 0) { - DEBUG_FUNCTION_LINE_ERR("Could not get access to audio buffer from foreground bucket\n"); + DEBUG_FUNCTION_LINE_ERR("Could not get access to audio buffer from foreground bucket"); return; } std::span audioBufferIn(mBuffer.data() + 8, mBuffer.size() - 8); - DEBUG_FUNCTION_LINE("Got audio buffer from foreground bucket @ %8.8x len = %d\n", audioBuffer, audioBufferLen); + DEBUG_FUNCTION_LINE("Got audio buffer from foreground bucket @ %8.8x len = %d", audioBuffer, audioBufferLen); if (audioBufferLen < mBuffer.size()) { DEBUG_FUNCTION_LINE_ERR("buffer not big enough"); return;