using System.Runtime.InteropServices;
namespace Ryujinx.Audio.Renderer.Parameter
{
    /// 
    /// Output information about a voice.
    /// 
    /// See 
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct VoiceOutStatus
    {
        /// 
        /// The total amount of samples that was played.
        /// 
        /// This is reset to 0 when a  finishes playing and  is set.
        /// This is reset to 0 when looping while  is set.
        public ulong PlayedSampleCount;
        /// 
        /// The total amount of  consumed.
        /// 
        public uint PlayedWaveBuffersCount;
        /// 
        /// If set to true, the voice was dropped.
        /// 
        [MarshalAs(UnmanagedType.I1)]
        public bool VoiceDropFlag;
        /// 
        /// Reserved/unused.
        /// 
        private unsafe fixed byte _reserved[3];
    }
}