summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorfincs <fincs.alt1@gmail.com>2016-09-03 15:01:31 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2016-09-03 15:06:25 +0200
commit0bbda3bab45f37fc888b8a8ac3ca9392a667c342 (patch)
tree227a21382fb51833a20d858273b98f342662feba /src
parentMerge pull request #2032 from bunnei/qt-graphics (diff)
downloadyuzu-0bbda3bab45f37fc888b8a8ac3ca9392a667c342.tar
yuzu-0bbda3bab45f37fc888b8a8ac3ca9392a667c342.tar.gz
yuzu-0bbda3bab45f37fc888b8a8ac3ca9392a667c342.tar.bz2
yuzu-0bbda3bab45f37fc888b8a8ac3ca9392a667c342.tar.lz
yuzu-0bbda3bab45f37fc888b8a8ac3ca9392a667c342.tar.xz
yuzu-0bbda3bab45f37fc888b8a8ac3ca9392a667c342.tar.zst
yuzu-0bbda3bab45f37fc888b8a8ac3ca9392a667c342.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/codec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/codec.cpp b/src/audio_core/codec.cpp
index ab65514b7..3e23323f1 100644
--- a/src/audio_core/codec.cpp
+++ b/src/audio_core/codec.cpp
@@ -58,11 +58,11 @@ StereoBuffer16 DecodeADPCM(const u8* const data, const size_t sample_count, cons
size_t outputi = framei * SAMPLES_PER_FRAME;
size_t datai = framei * FRAME_LEN + 1;
for (size_t i = 0; i < SAMPLES_PER_FRAME && outputi < sample_count; i += 2) {
- const s16 sample1 = decode_sample(SIGNED_NIBBLES[data[datai] & 0xF]);
+ const s16 sample1 = decode_sample(SIGNED_NIBBLES[data[datai] >> 4]);
ret[outputi].fill(sample1);
outputi++;
- const s16 sample2 = decode_sample(SIGNED_NIBBLES[data[datai] >> 4]);
+ const s16 sample2 = decode_sample(SIGNED_NIBBLES[data[datai] & 0xF]);
ret[outputi].fill(sample2);
outputi++;