/// <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); }
/// <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; }