summaryrefslogtreecommitdiffstats
path: root/src/audio_core/command_generator.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-13 22:00:33 +0200
committerLioncash <mathew1800@gmail.com>2020-10-13 22:36:58 +0200
commit9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea (patch)
treed1a143eb839744bc1515700c861ec7e5d04d130e /src/audio_core/command_generator.cpp
parentMerge pull request #4786 from lioncash/flags (diff)
downloadyuzu-9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea.tar
yuzu-9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea.tar.gz
yuzu-9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea.tar.bz2
yuzu-9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea.tar.lz
yuzu-9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea.tar.xz
yuzu-9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea.tar.zst
yuzu-9f9b64d280d50b39c92e8e12c6f45ef78a72b4ea.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/command_generator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio_core/command_generator.cpp b/src/audio_core/command_generator.cpp
index bba40d13d..fb8700ccf 100644
--- a/src/audio_core/command_generator.cpp
+++ b/src/audio_core/command_generator.cpp
@@ -793,7 +793,6 @@ s32 CommandGenerator::DecodeAdpcm(ServerVoiceInfo& voice_info, VoiceState& dsp_s
// Decode entire frame
if (remaining_samples >= static_cast<int>(SAMPLES_PER_FRAME)) {
for (std::size_t i = 0; i < SAMPLES_PER_FRAME / 2; i++) {
-
// Sample 1
const s32 s0 = SIGNED_NIBBLES[buffer[buffer_offset] >> 4];
const s32 s1 = SIGNED_NIBBLES[buffer[buffer_offset++] & 0xf];
@@ -802,7 +801,7 @@ s32 CommandGenerator::DecodeAdpcm(ServerVoiceInfo& voice_info, VoiceState& dsp_s
sample_buffer[cur_mix_offset++] = sample_1;
sample_buffer[cur_mix_offset++] = sample_2;
}
- remaining_samples -= SAMPLES_PER_FRAME;
+ remaining_samples -= static_cast<int>(SAMPLES_PER_FRAME);
position_in_frame += SAMPLES_PER_FRAME;
continue;
}