Mario Kart Wii Gecko Codes, Cheats, & Hacks
Force BRSTM Volume Output [Sponge] - 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: Force BRSTM Volume Output [Sponge] (/showthread.php?tid=2113)



Force BRSTM Volume Output [Sponge] - Sponge - 03-07-2024

Force BRSTM Volume Output [Sponge]

Forces all BRSTM files to output at a specified value

XX = any value from 0 to 255 (0x0 to 0xFF)

PAL
C209E9F0 00000003
88030019 2C000002
380000XX 41820008
88030014 00000000

NTSC-U
C209E950 00000003
88030019 2C000002
380000XX 41820008
88030014 00000000

NTSC-J
C209E910 00000003
88030019 2C000002
380000XX 41820008
88030014 00000000

NTSC-K
C209EA50 00000003
88030019 2C000002
380000XX 41820008
88030014 00000000

Code:
.set volume, 0xFF

  lbz       r0, 0x19(r3)
  cmpwi     r0, 0x2 # Compare if audio type is BRSTM
  li        r0, volume
  beq       end # Load specified volume and exit if true, otherwise load value defined in BRSAR
  lbz       r0, 0x14(r3)

end: