Merge pull request #1626 from kamiyo/fix-wiimote-volume-divisor

Fix Wiimote speaker divisor for format 0x00
This commit is contained in:
skidau 2014-12-02 12:51:15 +11:00
commit b34c80d138

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
{