AudioBuffer.cs 963 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using Ryujinx.Audio.Integration;
  2. namespace Ryujinx.Audio.Common
  3. {
  4. /// <summary>
  5. /// Represent an audio buffer that will be used by an <see cref="IHardwareDeviceSession"/>.
  6. /// </summary>
  7. public class AudioBuffer
  8. {
  9. /// <summary>
  10. /// Unique tag of this buffer.
  11. /// </summary>
  12. /// <remarks>Unique per session</remarks>
  13. public ulong BufferTag;
  14. /// <summary>
  15. /// Pointer to the user samples.
  16. /// </summary>
  17. public ulong DataPointer;
  18. /// <summary>
  19. /// Size of the user samples region.
  20. /// </summary>
  21. public ulong DataSize;
  22. /// <summary>
  23. /// The timestamp at which the buffer was played.
  24. /// </summary>
  25. /// <remarks>Not used but useful for debugging</remarks>
  26. public ulong PlayedTimestamp;
  27. /// <summary>
  28. /// The user samples.
  29. /// </summary>
  30. public byte[] Data;
  31. }
  32. }