Merge pull request #3884 from superctr/qsoundhle_adpcm

qsoundhle.cpp: fix ADPCM playback
This commit is contained in:
MooglyGuy 2018-08-22 16:44:59 +02:00 committed by GitHub
commit 0c5949c184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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