using System.Runtime.InteropServices; namespace Microsoft.Win32 { /// /// WAVEFORMATEX定义 /// public static partial class NativeMethods { /// /// WAVEFORMATEX /// [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public struct WAVEFORMATEX { /// /// /// public short wFormatTag; /// /// /// public short nChannels; /// /// /// public int nSamplesPerSec; /// /// /// public int nAvgBytesPerSec; /// /// /// public short nBlockAlign; /// /// /// public short wBitsPerSample; /// /// /// public short cbSize; } } }