diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-07-25 13:46:25 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-07-25 13:46:25 +0200 |
commit | 3dcbba38bf5d317a007ac2cdc575c7e00461ecb7 (patch) | |
tree | df4c5cc9c69219fb21a3669bcdaf5b9458978898 /src/audio_core/voice_context.cpp | |
parent | Fix stream channel count when outputting to stereo (diff) | |
download | yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.tar yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.tar.gz yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.tar.bz2 yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.tar.lz yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.tar.xz yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.tar.zst yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.zip |
Diffstat (limited to 'src/audio_core/voice_context.cpp')
-rw-r--r-- | src/audio_core/voice_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio_core/voice_context.cpp b/src/audio_core/voice_context.cpp index 1d8f69844..16ae1afe8 100644 --- a/src/audio_core/voice_context.cpp +++ b/src/audio_core/voice_context.cpp @@ -520,7 +520,8 @@ void VoiceContext::SortInfo() { } void VoiceContext::UpdateStateByDspShared() { - voice_states = dsp_voice_states; + std::memcpy(voice_states.data(), dsp_voice_states.data(), + sizeof(VoiceState) * dsp_voice_states.size()); } } // namespace AudioCore |