mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-25 12:06:58 +01:00
Improve logging
This commit is contained in:
parent
52fdeb2b9b
commit
2d969813e0
@ -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<uint8_t> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user