diff options
| author | bunnei <bunneidev@gmail.com> | 2022-09-16 23:51:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-16 23:51:31 -0700 |
| commit | 4a7a7713401983f94b6c07fa07cbbbfa4025556c (patch) | |
| tree | ee9f4cac999d8c4f7e5c1d5d51e624ff82580607 /src/audio_core/renderer/effect | |
| parent | eb726677b21446145898065fa79f798a6c8d2c9d (diff) | |
| parent | 7e3cdfc453e27af80238d0ec9cd5005e1f189319 (diff) | |
Merge pull request #8914 from lioncash/audio-const
audio_core: Mark several member functions as const
Diffstat (limited to 'src/audio_core/renderer/effect')
| -rw-r--r-- | src/audio_core/renderer/effect/i3dl2.h | 4 | ||||
| -rw-r--r-- | src/audio_core/renderer/effect/reverb.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_core/renderer/effect/i3dl2.h b/src/audio_core/renderer/effect/i3dl2.h index 7a088a627..1ebbc5c4c 100644 --- a/src/audio_core/renderer/effect/i3dl2.h +++ b/src/audio_core/renderer/effect/i3dl2.h @@ -99,7 +99,7 @@ public: return out_sample; } - Common::FixedPoint<50, 14> Read() { + Common::FixedPoint<50, 14> Read() const { return *output; } @@ -110,7 +110,7 @@ public: } } - Common::FixedPoint<50, 14> TapOut(const s32 index) { + Common::FixedPoint<50, 14> TapOut(const s32 index) const { auto out{input - (index + 1)}; if (out < buffer.data()) { out += max_delay + 1; diff --git a/src/audio_core/renderer/effect/reverb.h b/src/audio_core/renderer/effect/reverb.h index b4df9f6ef..a72475c3c 100644 --- a/src/audio_core/renderer/effect/reverb.h +++ b/src/audio_core/renderer/effect/reverb.h @@ -95,7 +95,7 @@ public: return out_sample; } - Common::FixedPoint<50, 14> Read() { + Common::FixedPoint<50, 14> Read() const { return *output; } @@ -106,7 +106,7 @@ public: } } - Common::FixedPoint<50, 14> TapOut(const s32 index) { + Common::FixedPoint<50, 14> TapOut(const s32 index) const { auto out{input - (index + 1)}; if (out < buffer.data()) { out += sample_count; |
