From 9c0c4f5c81c63e613549be4c01c76adbb345acc0 Mon Sep 17 00:00:00 2001 From: Liriosha <57261793+Liriosha@users.noreply.github.com> Date: Thu, 19 Mar 2026 03:37:43 -0400 Subject: [PATCH] fmt manually --- Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp | 10 +++++----- Minecraft.Client/Platform/Common/Audio/stb_vorbis.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp b/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp index 77ba30a09..31b61b89d 100644 --- a/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp +++ b/Minecraft.Client/Platform/Common/Audio/SoundEngine.cpp @@ -1054,8 +1054,8 @@ void SoundEngine::init(Options* pOptions) { // Create a driver to render our audio - 44khz, 16 bit, #ifdef __PS3__ // On the Sony PS3, the driver is always opened in 48 kHz, 32-bit floating - //point. The only meaningful configurations are MSS_MC_STEREO, - //MSS_MC_51_DISCRETE, and MSS_MC_71_DISCRETE. + // point. The only meaningful configurations are MSS_MC_STEREO, + // MSS_MC_51_DISCRETE, and MSS_MC_71_DISCRETE. m_hDriver = AIL_open_digital_driver(48000, 16, iNumberOfChannels, AIL_OPEN_DIGITAL_USE_SPU0); #elif defined __PSVITA__ @@ -1954,9 +1954,9 @@ void SoundEngine::playMusicUpdate() { #endif } - // std::wstring name = - // m_szStreamFileA[m_musicID]; char *SoundName = (char - // *)ConvertSoundPathToName(name); strcat((char + // std::wstring name = + // m_szStreamFileA[m_musicID];char*SoundName=(char + // *)ConvertSoundPathToName(name);strcat((char // *)szStreamName,SoundName); app.DebugPrintf("Starting streaming - %s\n", m_szStreamName); diff --git a/Minecraft.Client/Platform/Common/Audio/stb_vorbis.h b/Minecraft.Client/Platform/Common/Audio/stb_vorbis.h index 55e3c56c1..1cbd0f314 100644 --- a/Minecraft.Client/Platform/Common/Audio/stb_vorbis.h +++ b/Minecraft.Client/Platform/Common/Audio/stb_vorbis.h @@ -3381,7 +3381,7 @@ static int start_decoder(vorb* f) { if (get_bits(f, 1)) high_bits = get_bits(f, 5); residue_cascade[j] = high_bits * 8 + low_bits; } - r->residue_books = (short (*)[8])setup_malloc( + r->residue_books = (short(*)[8])setup_malloc( f, sizeof(r->residue_books[0]) * r->classifications); if (r->residue_books == NULL) return error(f, VORBIS_outofmem); for (j = 0; j < r->classifications; ++j) {