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:
parent
3210a942ec
commit
e8c393b00f
|
@ -97,7 +97,10 @@ void Wiimote::SpeakerData(wm_speaker_data* sd)
|
||||||
|
|
||||||
// Following details from http://wiibrew.org/wiki/Wiimote#Speaker
|
// Following details from http://wiibrew.org/wiki/Wiimote#Speaker
|
||||||
sample_rate_dividend = 6000000;
|
sample_rate_dividend = 6000000;
|
||||||
volume_divisor = 0x40;
|
|
||||||
|
// 0 - 127
|
||||||
|
// TODO: does it go beyond 127 for format == 0x40?
|
||||||
|
volume_divisor = 0x7F;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue