2020-08-18 03:49:37 +02:00
|
|
|
using Ryujinx.Audio.Renderer.Common;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Ryujinx.Audio.Renderer.Parameter
|
|
|
|
{
|
|
|
|
/// <summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
/// Generic interface to represent input information for an effect.
|
2020-08-18 03:49:37 +02:00
|
|
|
/// </summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
public interface IEffectInParameter
|
2020-08-18 03:49:37 +02:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Type of the effect.
|
|
|
|
/// </summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
EffectType Type { get; }
|
2020-08-18 03:49:37 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Set to true if the effect is new.
|
|
|
|
/// </summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
bool IsNew { get; }
|
2020-08-18 03:49:37 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Set to true if the effect must be active.
|
|
|
|
/// </summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
bool IsEnabled { get; }
|
2020-08-18 03:49:37 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The target mix id of the effect.
|
|
|
|
/// </summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
int MixId { get; }
|
2020-08-18 03:49:37 +02: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 19:01:09 +02:00
|
|
|
ulong BufferBase { get; }
|
2020-08-18 03:49:37 +02: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 19:01:09 +02:00
|
|
|
ulong BufferSize { get; }
|
2020-08-18 03:49:37 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Position of the effect while processing effects.
|
|
|
|
/// </summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
uint ProcessingOrder { get; }
|
2020-08-18 03:49:37 +02:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Specific data changing depending of the <see cref="Type"/>. See also the <see cref="Effect"/> namespace.
|
|
|
|
/// </summary>
|
2021-05-25 19:01:09 +02:00
|
|
|
Span<byte> SpecificData { get; }
|
2020-08-18 03:49:37 +02:00
|
|
|
}
|
2022-07-25 20:46:33 +02:00
|
|
|
}
|