From e8c393b00f1af37528d726f9da9ca2c9bd5f9323 Mon Sep 17 00:00:00 2001 From: kamiyo Date: Mon, 1 Dec 2014 13:06:53 -0500 Subject: [PATCH] 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. --- Source/Core/Core/HW/WiimoteEmu/Speaker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/WiimoteEmu/Speaker.cpp b/Source/Core/Core/HW/WiimoteEmu/Speaker.cpp index d7b0ff496d..065511667f 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Speaker.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/Speaker.cpp @@ -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 {