mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-20 17:03:22 +02:00
compressor: Mark params parameters as const
These functions don't modify the parameters.
This commit is contained in:
parent
bdb866af1d
commit
fd876f200f
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace AudioCore::AudioRenderer {
|
namespace AudioCore::AudioRenderer {
|
||||||
|
|
||||||
static void SetCompressorEffectParameter(CompressorInfo::ParameterVersion2& params,
|
static void SetCompressorEffectParameter(const CompressorInfo::ParameterVersion2& params,
|
||||||
CompressorInfo::State& state) {
|
CompressorInfo::State& state) {
|
||||||
const auto ratio{1.0f / params.compressor_ratio};
|
const auto ratio{1.0f / params.compressor_ratio};
|
||||||
auto makeup_gain{0.0f};
|
auto makeup_gain{0.0f};
|
||||||
@ -31,7 +31,7 @@ static void SetCompressorEffectParameter(CompressorInfo::ParameterVersion2& para
|
|||||||
state.unk_20 = c;
|
state.unk_20 = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void InitializeCompressorEffect(CompressorInfo::ParameterVersion2& params,
|
static void InitializeCompressorEffect(const CompressorInfo::ParameterVersion2& params,
|
||||||
CompressorInfo::State& state) {
|
CompressorInfo::State& state) {
|
||||||
std::memset(&state, 0, sizeof(CompressorInfo::State));
|
std::memset(&state, 0, sizeof(CompressorInfo::State));
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ static void InitializeCompressorEffect(CompressorInfo::ParameterVersion2& params
|
|||||||
SetCompressorEffectParameter(params, state);
|
SetCompressorEffectParameter(params, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ApplyCompressorEffect(CompressorInfo::ParameterVersion2& params,
|
static void ApplyCompressorEffect(const CompressorInfo::ParameterVersion2& params,
|
||||||
CompressorInfo::State& state, bool enabled,
|
CompressorInfo::State& state, bool enabled,
|
||||||
std::vector<std::span<const s32>> input_buffers,
|
std::vector<std::span<const s32>> input_buffers,
|
||||||
std::vector<std::span<s32>> output_buffers, u32 sample_count) {
|
std::vector<std::span<s32>> output_buffers, u32 sample_count) {
|
||||||
|
Loading…
Reference in New Issue
Block a user