Fix wiimote speaker divisor.

Playing with the wiimote volume in the Wii menu in-game, I found that the range for m_reg_speaker.volume is 0 -127, not 0 - 64.
This commit is contained in:
kamiyo 2014-12-01 13:06:53 -05:00
parent 3210a942ec
commit e8c393b00f
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ void Wiimote::SpeakerData(wm_speaker_data* sd)
// Following details from http://wiibrew.org/wiki/Wiimote#Speaker
sample_rate_dividend = 6000000;
volume_divisor = 0x40;
// 0 - 127
// TODO: does it go beyond 127 for format == 0x40?
volume_divisor = 0x7F;
}
else
{