mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 22:56:52 +01:00
Added condition so that function to mix wiimote-speaker data into the master mixer is called only if wiimote is emulated.
This commit is contained in:
parent
f5aed3d6c6
commit
e76e3b7390
@ -784,12 +784,11 @@ void Wiimote::HidOutputReport(const wm_report* const sr, const bool send_ack)
|
||||
break;
|
||||
|
||||
case WM_WRITE_SPEAKER_DATA : // 0x18
|
||||
{
|
||||
//wm_speaker_data *spkz = (wm_speaker_data*)sr->data;
|
||||
//ERROR_LOG(WIIMOTE, "WM_WRITE_SPEAKER_DATA len:%x %s", spkz->length,
|
||||
// ArrayToString(spkz->data, spkz->length, 100, false).c_str());
|
||||
Wiimote::SpeakerData((wm_speaker_data*)sr->data);
|
||||
}
|
||||
if (WIIMOTE_SRC_EMU & g_wiimote_sources[m_index])
|
||||
Wiimote::SpeakerData((wm_speaker_data*) sr->data);
|
||||
return; // no ack
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user