Ejemplo 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 WaveInCapabilities GetCapabilities(int devNumber)
 {
     WaveInCapabilities caps = new WaveInCapabilities();
     int structSize = Marshal.SizeOf(caps);
     MmException.Try(WaveInterop.waveInGetDevCaps((IntPtr)devNumber, out caps, structSize), "waveInGetDevCaps");
     return caps;
 }
Ejemplo n.º 2
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 WaveInCapabilities GetCapabilities(int devNumber)
        {
            WaveInCapabilities caps = new WaveInCapabilities();
            int structSize          = Marshal.SizeOf(caps);

            MmException.Try(WaveInterop.waveInGetDevCaps((IntPtr)devNumber, out caps, structSize), "waveInGetDevCaps");
            return(caps);
        }
Ejemplo n.º 3
0
 public static extern MmResult waveInGetDevCaps(IntPtr deviceID, out WaveInCapabilities waveInCaps, int waveInCapsSize);
Ejemplo n.º 4
0
 public static extern MmResult waveInGetDevCaps(IntPtr deviceID, out WaveInCapabilities waveInCaps, int waveInCapsSize);