SoundIoBuffer.cs 861 B

1234567891011121314151617181920212223242526272829
  1. namespace Ryujinx.Audio.SoundIo
  2. {
  3. /// <summary>
  4. /// Represents the remaining bytes left buffered for a specific buffer tag
  5. /// </summary>
  6. internal class SoundIoBuffer
  7. {
  8. /// <summary>
  9. /// The buffer tag this <see cref="SoundIoBuffer"/> represents
  10. /// </summary>
  11. public long Tag { get; private set; }
  12. /// <summary>
  13. /// The remaining bytes still to be released
  14. /// </summary>
  15. public int Length { get; set; }
  16. /// <summary>
  17. /// Constructs a new instance of a <see cref="SoundIoBuffer"/>
  18. /// </summary>
  19. /// <param name="tag">The buffer tag</param>
  20. /// <param name="length">The size of the buffer</param>
  21. public SoundIoBuffer(long tag, int length)
  22. {
  23. Tag = tag;
  24. Length = length;
  25. }
  26. }
  27. }