2020-08-18 03:49:37 +02:00
|
|
|
using Ryujinx.Audio.Renderer.Server.Effect;
|
|
|
|
using Ryujinx.Common.Memory;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
namespace Ryujinx.Audio.Renderer.Parameter.Effect
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
/// <see cref="IEffectInParameter.SpecificData"/> for <see cref="Common.EffectType.BiquadFilter"/>.
|
2020-08-18 03:49:37 +02:00
|
|
|
/// </summary>
|
|
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
|
|
public struct BiquadFilterEffectParameter
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The input channel indices that will be used by the <see cref="Dsp.AudioProcessor"/>.
|
|
|
|
/// </summary>
|
|
|
|
public Array6<byte> Input;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The output channel indices that will be used by the <see cref="Dsp.AudioProcessor"/>.
|
|
|
|
/// </summary>
|
|
|
|
public Array6<byte> Output;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Biquad filter numerator (b0, b1, b2).
|
|
|
|
/// </summary>
|
|
|
|
public Array3<short> Numerator;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Biquad filter denominator (a1, a2).
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>a0 = 1</remarks>
|
|
|
|
public Array2<short> Denominator;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The total channel count used.
|
|
|
|
/// </summary>
|
|
|
|
public byte ChannelCount;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The current usage status of the effect on the client side.
|
|
|
|
/// </summary>
|
|
|
|
public UsageState Status;
|
|
|
|
}
|
2022-07-25 20:46:33 +02:00
|
|
|
}
|