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:
kamiyo 2014-11-19 01:28:11 -05:00
parent f5aed3d6c6
commit e76e3b7390

View file

@ -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;