WAVEFORMATEX.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Runtime.InteropServices;
  2. namespace Microsoft.Win32
  3. {
  4. /// <summary>
  5. /// WAVEFORMATEX定义
  6. /// </summary>
  7. public static partial class NativeMethods
  8. {
  9. /// <summary>
  10. /// WAVEFORMATEX
  11. /// </summary>
  12. [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
  13. public struct WAVEFORMATEX
  14. {
  15. /// <summary>
  16. ///
  17. /// </summary>
  18. public short wFormatTag;
  19. /// <summary>
  20. ///
  21. /// </summary>
  22. public short nChannels;
  23. /// <summary>
  24. ///
  25. /// </summary>
  26. public int nSamplesPerSec;
  27. /// <summary>
  28. ///
  29. /// </summary>
  30. public int nAvgBytesPerSec;
  31. /// <summary>
  32. ///
  33. /// </summary>
  34. public short nBlockAlign;
  35. /// <summary>
  36. ///
  37. /// </summary>
  38. public short wBitsPerSample;
  39. /// <summary>
  40. ///
  41. /// </summary>
  42. public short cbSize;
  43. }
  44. }
  45. }