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