AudioOutputConfiguration.cs 915 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using Ryujinx.Common.Memory;
  2. using System.Runtime.InteropServices;
  3. namespace Ryujinx.Audio.Common
  4. {
  5. /// <summary>
  6. /// Audio system output configuration.
  7. /// </summary>
  8. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  9. public struct AudioOutputConfiguration
  10. {
  11. /// <summary>
  12. /// The target sample rate of the system.
  13. /// </summary>
  14. public uint SampleRate;
  15. /// <summary>
  16. /// The target channel count of the system.
  17. /// </summary>
  18. public uint ChannelCount;
  19. /// <summary>
  20. /// Reserved/unused
  21. /// </summary>
  22. public SampleFormat SampleFormat;
  23. /// <summary>
  24. /// Reserved/unused.
  25. /// </summary>
  26. private Array3<byte> _padding;
  27. /// <summary>
  28. /// The initial audio system state.
  29. /// </summary>
  30. public AudioDeviceState AudioOutState;
  31. }
  32. }