Example #1
0
        /// <summary>
        /// Enumerates the DirectSound devices installed in the system.
        /// </summary>
        /// <returns>A collection of the devices found.</returns>
        public static List <DeviceInformation> GetDevices()
        {
            var callback = new EnumDelegateCallback();

            DSound.EnumerateW(callback.NativePointer, IntPtr.Zero);
            return(callback.Informations);
        }
Example #2
0
 /// <summary>
 /// Enumerates the DirectSound devices installed in the system.
 /// </summary>
 /// <returns>A collection of the devices found.</returns>
 public static List<DeviceInformation> GetDevices()
 {
     EnumDelegateCallback callback = new EnumDelegateCallback();
     DSound.EnumerateW(callback.NativePointer, IntPtr.Zero);
     return callback.Informations;
 }