Audio Fast Streaming [Vega] - Printable Version +- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com) +-- Forum: Cheat Codes (https://mariokartwii.com/forumdisplay.php?fid=51) +--- Forum: Visual & Sound Effects (https://mariokartwii.com/forumdisplay.php?fid=56) +--- Thread: Audio Fast Streaming [Vega] (/showthread.php?tid=941) |
Audio Fast Streaming [Vega] - Vega - 11-15-2018 Audio Fast Streaming [Vega] NOTE: This code works on all Wii games, not just MKWii. This code will change the streaming effect (make the audio sound sped-up/high-pitch) of the game's audio by modifying the bits in AI_CONTROL. Region-Free C0000000 00000003 3C60CD80 80036C00 540006B0 90036C00 4E800020 00000000 Source: lis r3, 0xCD80 #Set Hardware Mapping lwz r0, 0x6C00 (r3) #Load AI_CONTROL rlwinm r0, r0, 0, 26, 24 #Clear bit 25 (RATE) to set sample rate to 48KHz stw r0, 0x6C00 (r3) #Update AI_CONTROL #blr #Uncomment if NOT compiling with PyiiASMH via C0 option Code creator: Vega Code credits: WiiBrew RE: Audio Fast Streaming [Vega] - marito_yo - 02-27-2023 How could I restore the audio pitch back to normal using the same code? RE: Audio Fast Streaming [Vega] - Vega - 02-27-2023 You would need to flip bit 25 back to being high. However, this may not work (due to hardware limitations and this may not be the correct way to manipulate the sample rate). lis r3, 0xCD80 #Set Hardware Mapping lwz r0, 0x6C00 (r3) #Load AI_CONTROL ori r0, r0, 0x0400 #Set bit 25 (RATE) to set sample rate to 32KHz stw r0, 0x6C00 (r3) #Update AI_CONTROL Wiibrew article - https://wiibrew.org/wiki/Hardware/Audio_Interface Fyi, Wiibrew is using a Little Endian scheme for bit displays of the registers. In my opinion, this is silly, because both Broadway and Starlet are natively Big Endian. |