using Ryujinx.Audio.Renderer.Server.Effect;
using Ryujinx.Common.Memory;
using System.Runtime.InteropServices;
namespace Ryujinx.Audio.Renderer.Parameter.Effect
{
///
/// for .
///
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct DelayParameter
{
///
/// The input channel indices that will be used by the .
///
public Array6 Input;
///
/// The output channel indices that will be used by the .
///
public Array6 Output;
///
/// The maximum number of channels supported.
///
public ushort ChannelCountMax;
///
/// The total channel count used.
///
public ushort ChannelCount;
///
/// The maximum delay time in milliseconds.
///
public uint DelayTimeMax;
///
/// The delay time in milliseconds.
///
public uint DelayTime;
///
/// The target sample rate. (Q15)
///
public uint SampleRate;
///
/// The input gain. (Q15)
///
public uint InGain;
///
/// The feedback gain. (Q15)
///
public uint FeedbackGain;
///
/// The output gain. (Q15)
///
public uint OutGain;
///
/// The dry gain. (Q15)
///
public uint DryGain;
///
/// The channel spread of the . (Q15)
///
public uint ChannelSpread;
///
/// The low pass amount. (Q15)
///
public uint LowPassAmount;
///
/// The current usage status of the effect on the client side.
///
public UsageState Status;
///
/// Check if the is valid.
///
/// Returns true if the is valid.
public readonly bool IsChannelCountValid()
{
return EffectInParameterVersion1.IsChannelCountValid(ChannelCount);
}
///
/// Check if the is valid.
///
/// Returns true if the is valid.
public readonly bool IsChannelCountMaxValid()
{
return EffectInParameterVersion1.IsChannelCountValid(ChannelCountMax);
}
}
}