2021-05-25 19:01:09 +02:00
|
|
|
|
//
|
2021-01-01 00:10:44 +01:00
|
|
|
|
// Copyright (c) 2019-2021 Ryujinx
|
2020-08-18 03:49:37 +02:00
|
|
|
|
//
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
// GNU Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|