02-27-2023, 04:01 PM
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.
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.