/// <summary> /// Retrieves the capabilities of a waveOut device /// </summary> /// <param name="devNumber">Device to test</param> /// <returns>The WaveOut device capabilities</returns> public static WaveOutCapabilities GetCapabilities(int devNumber) { var caps = new WaveOutCapabilities(); var structSize = Marshal.SizeOf(caps); MmException.Try(WaveInterop.waveOutGetDevCaps((IntPtr)devNumber, out caps, structSize), "waveOutGetDevCaps"); return(caps); }
public static extern MmResult waveOutGetDevCaps(IntPtr deviceID, out WaveOutCapabilities waveOutCaps, int waveOutCapsSize);