diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-14 00:30:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 00:30:30 +0200 |
commit | ca416a0fb87ced0e471729fe344b9f34a090e7b5 (patch) | |
tree | d1a143eb839744bc1515700c861ec7e5d04d130e /src/audio_core/voice_context.cpp | |
parent | Merge pull request #4786 from lioncash/flags (diff) | |
parent | audio_core/CMakeLists: Make warnings consistent with core (diff) | |
download | yuzu-ca416a0fb87ced0e471729fe344b9f34a090e7b5.tar yuzu-ca416a0fb87ced0e471729fe344b9f34a090e7b5.tar.gz yuzu-ca416a0fb87ced0e471729fe344b9f34a090e7b5.tar.bz2 yuzu-ca416a0fb87ced0e471729fe344b9f34a090e7b5.tar.lz yuzu-ca416a0fb87ced0e471729fe344b9f34a090e7b5.tar.xz yuzu-ca416a0fb87ced0e471729fe344b9f34a090e7b5.tar.zst yuzu-ca416a0fb87ced0e471729fe344b9f34a090e7b5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/voice_context.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio_core/voice_context.cpp b/src/audio_core/voice_context.cpp index 863ac9267..c46ee55f1 100644 --- a/src/audio_core/voice_context.cpp +++ b/src/audio_core/voice_context.cpp @@ -128,7 +128,10 @@ void ServerVoiceInfo::UpdateParameters(const VoiceInfo::InParams& voice_in, in_params.wave_buffer_count = voice_in.wave_buffer_count; in_params.wave_bufffer_head = voice_in.wave_buffer_head; if (behavior_info.IsFlushVoiceWaveBuffersSupported()) { - in_params.wave_buffer_flush_request_count += voice_in.wave_buffer_flush_request_count; + const auto in_request_count = in_params.wave_buffer_flush_request_count; + const auto voice_request_count = voice_in.wave_buffer_flush_request_count; + in_params.wave_buffer_flush_request_count = + static_cast<u8>(in_request_count + voice_request_count); } in_params.mix_id = voice_in.mix_id; if (behavior_info.IsSplitterSupported()) { |