qsoundhle.cpp: fix ADPCM playback

This commit is contained in:
superctr 2018-08-22 14:47:09 +02:00
parent f10af0683b
commit cba3ac3ac1

View File

@ -523,7 +523,7 @@ void qsound_hle_device::state_normal_update()
// update ADPCM voices (one every third sample)
const int adpcm_voice = m_state_counter % 3;
m_adpcm[adpcm_voice].update(*this, m_voice_output[16 + adpcm_voice], m_state_counter / 3);
m_voice_output[16 + adpcm_voice] = m_adpcm[adpcm_voice].update(*this, m_voice_output[16 + adpcm_voice], m_state_counter / 3);
int16_t echo_output = m_echo.apply(echo_input);