using Ryujinx.Common.Memory;
using System.Runtime.InteropServices;
namespace Ryujinx.Audio.Renderer.Parameter.Effect
{
///
/// Effect result state for .
///
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct LimiterStatistics
{
///
/// The max input sample value recorded by the limiter.
///
public Array6 InputMax;
///
/// Compression gain min value.
///
public Array6 CompressionGainMin;
///
/// Reset the statistics.
///
public void Reset()
{
InputMax.AsSpan().Fill(0.0f);
CompressionGainMin.AsSpan().Fill(1.0f);
}
}
}