using Ryujinx.Audio.Integration; using System.Threading; namespace Ryujinx.Audio.Common { /// /// Represent an audio buffer that will be used by an . /// public class AudioBuffer { private static ulong UniqueIdGlobal = 0; /// /// Unique tag of this buffer, from the guest. /// /// Unique per session public ulong BufferTag; /// /// Globally unique ID of the buffer on the host. /// public ulong HostTag = Interlocked.Increment(ref UniqueIdGlobal); /// /// Pointer to the user samples. /// public ulong DataPointer; /// /// Size of the user samples region. /// public ulong DataSize; /// /// The timestamp at which the buffer was played. /// /// Not used but useful for debugging public ulong PlayedTimestamp; /// /// The user samples. /// public byte[] Data; } }