AudioInputConfiguration.cs 889 B

1234567891011121314151617181920212223242526272829
  1. using System.Runtime.InteropServices;
  2. namespace Ryujinx.Audio.Common
  3. {
  4. /// <summary>
  5. /// Audio user input configuration.
  6. /// </summary>
  7. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  8. public struct AudioInputConfiguration
  9. {
  10. /// <summary>
  11. /// The target sample rate of the user.
  12. /// </summary>
  13. /// <remarks>Only 48000Hz is considered valid, other sample rates will be refused.</remarks>
  14. public uint SampleRate;
  15. /// <summary>
  16. /// The target channel count of the user.
  17. /// </summary>
  18. /// <remarks>Only Stereo and Surround are considered valid, other configurations will be refused.</remarks>
  19. /// <remarks>Not used in audin.</remarks>
  20. public ushort ChannelCount;
  21. /// <summary>
  22. /// Reserved/unused.
  23. /// </summary>
  24. private ushort _reserved;
  25. }
  26. }