summaryrefslogtreecommitdiffstats
path: root/src/audio_core/voice_context.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-07-25 13:46:25 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-07-25 13:46:25 +0200
commit3dcbba38bf5d317a007ac2cdc575c7e00461ecb7 (patch)
treedf4c5cc9c69219fb21a3669bcdaf5b9458978898 /src/audio_core/voice_context.cpp
parentFix stream channel count when outputting to stereo (diff)
downloadyuzu-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.cpp3
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