aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/voice_context.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-13 16:00:33 -0400
committerLioncash <mathew1800@gmail.com>2020-10-13 16:36:58 -0400
commit9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea (patch)
treed1a143eb839744bc1515700c861ec7e5d04d130e /src/audio_core/voice_context.cpp
parentc5b3c8d06bcfa343b2cecbfc60b3530b306ebe88 (diff)
audio_core/CMakeLists: Make warnings consistent with core
Normalizes the warnings shared between audio_core and core.
Diffstat (limited to 'src/audio_core/voice_context.cpp')
-rw-r--r--src/audio_core/voice_context.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio_core/voice_context.cpp b/src/audio_core/voice_context.cpp
index 863ac92673..c46ee55f13 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()) {