IEffectInParameter.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // Copyright (c) 2019-2021 Ryujinx
  3. //
  4. // This program is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU Lesser General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public License
  15. // along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. //
  17. using Ryujinx.Audio.Renderer.Common;
  18. using System;
  19. namespace Ryujinx.Audio.Renderer.Parameter
  20. {
  21. /// <summary>
  22. /// Generic interface to represent input information for an effect.
  23. /// </summary>
  24. public interface IEffectInParameter
  25. {
  26. /// <summary>
  27. /// Type of the effect.
  28. /// </summary>
  29. EffectType Type { get; }
  30. /// <summary>
  31. /// Set to true if the effect is new.
  32. /// </summary>
  33. bool IsNew { get; }
  34. /// <summary>
  35. /// Set to true if the effect must be active.
  36. /// </summary>
  37. bool IsEnabled { get; }
  38. /// <summary>
  39. /// The target mix id of the effect.
  40. /// </summary>
  41. int MixId { get; }
  42. /// <summary>
  43. /// Address of the processing workbuffer.
  44. /// </summary>
  45. /// <remarks>This is additional data that could be required by the effect processing.</remarks>
  46. ulong BufferBase { get; }
  47. /// <summary>
  48. /// Size of the processing workbuffer.
  49. /// </summary>
  50. /// <remarks>This is additional data that could be required by the effect processing.</remarks>
  51. ulong BufferSize { get; }
  52. /// <summary>
  53. /// Position of the effect while processing effects.
  54. /// </summary>
  55. uint ProcessingOrder { get; }
  56. /// <summary>
  57. /// Specific data changing depending of the <see cref="Type"/>. See also the <see cref="Effect"/> namespace.
  58. /// </summary>
  59. Span<byte> SpecificData { get; }
  60. }
  61. }