Force BRSTM Volume Output [Sponge]
#1
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:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)