2020-08-17 21:49:37 -04:00
|
|
|
using Ryujinx.Audio.Renderer.Common;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Ryujinx.Audio.Renderer.Parameter
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-05-25 13:01:09 -04:00
|
|
|
/// Generic interface to represent input information for an effect.
|
2020-08-17 21:49:37 -04:00
|
|
|
/// </summary>
|
2021-05-25 13:01:09 -04:00
|
|
|
public interface IEffectInParameter
|
2020-08-17 21:49:37 -04:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Type of the effect.
|
|
|
|
/// </summary>
|
2021-05-25 13:01:09 -04:00
|
|
|
EffectType Type { get; }
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Set to true if the effect is new.
|
|
|
|
/// </summary>
|
2021-05-25 13:01:09 -04:00
|
|
|
bool IsNew { get; }
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Set to true if the effect must be active.
|
|
|
|
/// </summary>
|
2021-05-25 13:01:09 -04:00
|
|
|
bool IsEnabled { get; }
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The target mix id of the effect.
|
|
|
|
/// </summary>
|
2021-05-25 13:01:09 -04:00
|
|
|
int MixId { get; }
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Address of the processing workbuffer.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>This is additional data that could be required by the effect processing.</remarks>
|
2021-05-25 13:01:09 -04:00
|
|
|
ulong BufferBase { get; }
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Size of the processing workbuffer.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>This is additional data that could be required by the effect processing.</remarks>
|
2021-05-25 13:01:09 -04:00
|
|
|
ulong BufferSize { get; }
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Position of the effect while processing effects.
|
|
|
|
/// </summary>
|
2021-05-25 13:01:09 -04:00
|
|
|
uint ProcessingOrder { get; }
|
2020-08-17 21:49:37 -04:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Specific data changing depending of the <see cref="Type"/>. See also the <see cref="Effect"/> namespace.
|
|
|
|
/// </summary>
|
2021-05-25 13:01:09 -04:00
|
|
|
Span<byte> SpecificData { get; }
|
2020-08-17 21:49:37 -04:00
|
|
|
}
|
2022-07-25 14:46:33 -04:00
|
|
|
}
|