diff options
| author | 2022-09-16 09:57:23 -0400 | |
|---|---|---|
| committer | 2022-09-16 09:58:49 -0400 | |
| commit | e4bc7b8611677591fb41c9f97bad22b5eb57ab98 (patch) | |
| tree | 43f469ae3c3535ab0fb94a5ca05b4e7b98b8d113 /src | |
| parent | behavior_info: Mark CopyErrorInfo as const (diff) | |
| download | yuzu-e4bc7b8611677591fb41c9f97bad22b5eb57ab98.tar.gz yuzu-e4bc7b8611677591fb41c9f97bad22b5eb57ab98.tar.xz yuzu-e4bc7b8611677591fb41c9f97bad22b5eb57ab98.zip | |
i3dl2/reverb: Mark relevant member functions as const
These two don't modify member state.
Diffstat (limited to 'src')
| -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: | |||
| 99 | return out_sample; | 99 | return out_sample; |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | Common::FixedPoint<50, 14> Read() { | 102 | Common::FixedPoint<50, 14> Read() const { |
| 103 | return *output; | 103 | return *output; |
| 104 | } | 104 | } |
| 105 | 105 | ||
| @@ -110,7 +110,7 @@ public: | |||
| 110 | } | 110 | } |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | Common::FixedPoint<50, 14> TapOut(const s32 index) { | 113 | Common::FixedPoint<50, 14> TapOut(const s32 index) const { |
| 114 | auto out{input - (index + 1)}; | 114 | auto out{input - (index + 1)}; |
| 115 | if (out < buffer.data()) { | 115 | if (out < buffer.data()) { |
| 116 | out += max_delay + 1; | 116 | 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: | |||
| 95 | return out_sample; | 95 | return out_sample; |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | Common::FixedPoint<50, 14> Read() { | 98 | Common::FixedPoint<50, 14> Read() const { |
| 99 | return *output; | 99 | return *output; |
| 100 | } | 100 | } |
| 101 | 101 | ||
| @@ -106,7 +106,7 @@ public: | |||
| 106 | } | 106 | } |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | Common::FixedPoint<50, 14> TapOut(const s32 index) { | 109 | Common::FixedPoint<50, 14> TapOut(const s32 index) const { |
| 110 | auto out{input - (index + 1)}; | 110 | auto out{input - (index + 1)}; |
| 111 | if (out < buffer.data()) { | 111 | if (out < buffer.data()) { |
| 112 | out += sample_count; | 112 | out += sample_count; |