public static bool IsFavouriteDevice(AudioDevice ad)
 {
     return FavouriteDeviceIDs.Contains(ad.ID);
 }
 public AudioDeviceUIWrapper(AudioDevice ad)
 {
     Device = ad;
 }
 /// <summary>
 ///     Set this device as the the default device
 /// </summary>
 public static void SetAsDefaultDevice(AudioDevice dev)
 {
     try
     {
         if (dev.ID != DefaultPlaybackDevice.ID && dev.State == AudioDeviceState.Active)
         {
             CPolicyConfigVistaClient.SetDefaultDeviceStatic(dev.ID, ERole.eMultimedia | ERole.eConsole);
             FireAudioDeviceChanged(new AudioDeviceChangedEventArgs(dev, AudioDeviceEventType.DefaultDevice));
         }
     }
     catch
     {
     }
 }