diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-03-02 06:48:53 +0100 |
---|---|---|
committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2023-03-02 07:00:55 +0100 |
commit | 104cb6aa0a814cc9fb01647f1f1b6dfa3a3fc6f5 (patch) | |
tree | dad70d78aa9e737f1fc90cb5e1e77d1c45b6b571 /src/audio_core/renderer/effect | |
parent | Merge pull request #9832 from liamwhite/hle-mp (diff) | |
download | yuzu-104cb6aa0a814cc9fb01647f1f1b6dfa3a3fc6f5.tar yuzu-104cb6aa0a814cc9fb01647f1f1b6dfa3a3fc6f5.tar.gz yuzu-104cb6aa0a814cc9fb01647f1f1b6dfa3a3fc6f5.tar.bz2 yuzu-104cb6aa0a814cc9fb01647f1f1b6dfa3a3fc6f5.tar.lz yuzu-104cb6aa0a814cc9fb01647f1f1b6dfa3a3fc6f5.tar.xz yuzu-104cb6aa0a814cc9fb01647f1f1b6dfa3a3fc6f5.tar.zst yuzu-104cb6aa0a814cc9fb01647f1f1b6dfa3a3fc6f5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/renderer/effect/i3dl2.h | 3 | ||||
-rw-r--r-- | src/audio_core/renderer/effect/reverb.h | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/audio_core/renderer/effect/i3dl2.h b/src/audio_core/renderer/effect/i3dl2.h index 1ebbc5c4c..6e3ffd1d4 100644 --- a/src/audio_core/renderer/effect/i3dl2.h +++ b/src/audio_core/renderer/effect/i3dl2.h @@ -104,7 +104,8 @@ public: } void Write(const Common::FixedPoint<50, 14> sample) { - *(input++) = sample; + *input = sample; + input++; if (input >= buffer_end) { input = buffer.data(); } diff --git a/src/audio_core/renderer/effect/reverb.h b/src/audio_core/renderer/effect/reverb.h index a72475c3c..6cc345ef6 100644 --- a/src/audio_core/renderer/effect/reverb.h +++ b/src/audio_core/renderer/effect/reverb.h @@ -79,12 +79,10 @@ public: return; } sample_count = delay_time; - input = &buffer[(output - buffer.data() + sample_count) % (sample_count_max + 1)]; + input = &buffer[0]; } Common::FixedPoint<50, 14> Tick(const Common::FixedPoint<50, 14> sample) { - Write(sample); - auto out_sample{Read()}; output++; @@ -92,6 +90,7 @@ public: output = buffer.data(); } + Write(sample); return out_sample; } @@ -100,7 +99,8 @@ public: } void Write(const Common::FixedPoint<50, 14> sample) { - *(input++) = sample; + *input = sample; + input++; if (input >= buffer_end) { input = buffer.data(); } |