using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace LumiSoft.Media.Wave.Native { /// /// This class represents WAVEHDR structure. /// [StructLayout(LayoutKind.Sequential)] internal struct WAVEHDR { /// /// Long pointer to the address of the waveform buffer. /// public IntPtr lpData; /// /// Specifies the length, in bytes, of the buffer. /// public uint dwBufferLength; /// /// When the header is used in input, this member specifies how much data is in the buffer. /// When the header is used in output, this member specifies the number of bytes played from the buffer. /// public uint dwBytesRecorded; /// /// Specifies user data. /// public IntPtr dwUser; /// /// Specifies information about the buffer. /// public uint dwFlags; /// /// Specifies the number of times to play the loop. /// public uint dwLoops; /// /// Reserved. This member is used within the audio driver to maintain a first-in, first-out linked list of headers awaiting playback. /// public IntPtr lpNext; /// /// Reserved. /// public uint reserved; } }