Exemplo n.º 1
0
        /// <summary>
        /// Retrieves the capabilities of a waveIn device
        /// </summary>
        /// <param name="devNumber">Device to test</param>
        /// <returns>The WaveIn device capabilities</returns>
        public static DeviceDetails GetCapabilities(int devNumber)
        {
            var caps       = new DeviceDetails();
            int structSize = Marshal.SizeOf(caps);

            MmException.Try(WaveInterop.waveInGetDevCaps((IntPtr)devNumber, out caps, structSize), "waveInGetDevCaps");
            return(caps);
        }