Beispiel #1
0
 /// <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)
 {
     WaveOutCapabilities caps = new WaveOutCapabilities();
     int structSize = Marshal.SizeOf(caps);
     MmException.Try(WaveInterop.waveOutGetDevCaps((IntPtr)devNumber, out caps, structSize), "waveOutGetDevCaps");
     return caps;
 }
Beispiel #2
0
        /// <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)
        {
            WaveOutCapabilities caps = new WaveOutCapabilities();
            int structSize           = Marshal.SizeOf(caps);

            MmException.Try(WaveInterop.waveOutGetDevCaps((IntPtr)devNumber, out caps, structSize), "waveOutGetDevCaps");
            return(caps);
        }
Beispiel #3
0
 public static extern MmResult waveOutGetDevCaps(IntPtr deviceID, out WaveOutCapabilities waveOutCaps, int waveOutCapsSize);
Beispiel #4
0
 public static extern MmResult waveOutGetDevCaps(IntPtr deviceID, out WaveOutCapabilities waveOutCaps, int waveOutCapsSize);