summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-09-13 19:33:38 +0200
committerLioncash <mathew1800@gmail.com>2022-09-13 19:33:41 +0200
commitfd876f200f1c09cd4d840c1f3401390e00322b15 (patch)
tree2d857673cd2766b347de4ca6ba7f2e34c91f759e /src/audio_core/renderer
parentcompressor: Remove unneeded casts in ApplyCompressorEffect (diff)
downloadyuzu-fd876f200f1c09cd4d840c1f3401390e00322b15.tar
yuzu-fd876f200f1c09cd4d840c1f3401390e00322b15.tar.gz
yuzu-fd876f200f1c09cd4d840c1f3401390e00322b15.tar.bz2
yuzu-fd876f200f1c09cd4d840c1f3401390e00322b15.tar.lz
yuzu-fd876f200f1c09cd4d840c1f3401390e00322b15.tar.xz
yuzu-fd876f200f1c09cd4d840c1f3401390e00322b15.tar.zst
yuzu-fd876f200f1c09cd4d840c1f3401390e00322b15.zip
Diffstat (limited to 'src/audio_core/renderer')
-rw-r--r--src/audio_core/renderer/command/effect/compressor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio_core/renderer/command/effect/compressor.cpp b/src/audio_core/renderer/command/effect/compressor.cpp
index f9bba9f39..8c1b07609 100644
--- a/src/audio_core/renderer/command/effect/compressor.cpp
+++ b/src/audio_core/renderer/command/effect/compressor.cpp
@@ -11,7 +11,7 @@
namespace AudioCore::AudioRenderer {
-static void SetCompressorEffectParameter(CompressorInfo::ParameterVersion2& params,
+static void SetCompressorEffectParameter(const CompressorInfo::ParameterVersion2& params,
CompressorInfo::State& state) {
const auto ratio{1.0f / params.compressor_ratio};
auto makeup_gain{0.0f};
@@ -31,7 +31,7 @@ static void SetCompressorEffectParameter(CompressorInfo::ParameterVersion2& para
state.unk_20 = c;
}
-static void InitializeCompressorEffect(CompressorInfo::ParameterVersion2& params,
+static void InitializeCompressorEffect(const CompressorInfo::ParameterVersion2& params,
CompressorInfo::State& state) {
std::memset(&state, 0, sizeof(CompressorInfo::State));
@@ -42,7 +42,7 @@ static void InitializeCompressorEffect(CompressorInfo::ParameterVersion2& params
SetCompressorEffectParameter(params, state);
}
-static void ApplyCompressorEffect(CompressorInfo::ParameterVersion2& params,
+static void ApplyCompressorEffect(const CompressorInfo::ParameterVersion2& params,
CompressorInfo::State& state, bool enabled,
std::vector<std::span<const s32>> input_buffers,
std::vector<std::span<s32>> output_buffers, u32 sample_count) {