mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-31 08:28:28 -04:00
revert: af223e445f && 5ed7df1e68
- Needs To Be A Branch Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -50,8 +50,6 @@ public:
|
||||
/* 0x30 */ f32 out_gain;
|
||||
/* 0x34 */ ParameterState state;
|
||||
/* 0x35 */ bool makeup_gain_enabled;
|
||||
/* 0x36 */ bool statistics_enabled;
|
||||
/* 0x37 */ bool statistics_reset;
|
||||
};
|
||||
static_assert(sizeof(ParameterVersion2) <= sizeof(EffectInfoBase::InParameterVersion2),
|
||||
"CompressorInfo::ParameterVersion2 has the wrong size!");
|
||||
@@ -71,22 +69,6 @@ public:
|
||||
static_assert(sizeof(State) <= sizeof(EffectInfoBase::State),
|
||||
"CompressorInfo::State has the wrong size!");
|
||||
|
||||
struct Statistics {
|
||||
f32 maximum_mean;
|
||||
f32 minimum_gain;
|
||||
std::array<f32, MaxChannels> last_samples;
|
||||
|
||||
void Reset(u16 channel_count) {
|
||||
maximum_mean = 0.0f;
|
||||
minimum_gain = 1.0f;
|
||||
for (u16 i = 0; i < channel_count; i++) {
|
||||
last_samples[i] = 0.0f;
|
||||
}
|
||||
}
|
||||
};
|
||||
static_assert(sizeof(Statistics) <= sizeof(EffectResultState),
|
||||
"CompressorInfo::Statistics has the wrong size!");
|
||||
|
||||
/**
|
||||
* Update the info with new parameters, version 1.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user