예제 #1
0
 public CSCoreSoundOutProvider()
 {
     _mmNotificationClient = new MMNotificationClient();
     SoundOutModes = new ObservableCollection<ISoundOutMode>();
     LoadSoundOutModes();
     LoadEvents();
 }
예제 #2
0
 public void CanCreateDeviceNotificationEvent()
 {
     using (var enumerator = new MMDeviceEnumerator())
     using (var notification = new MMNotificationClient(enumerator))
     {
         notification.DefaultDeviceChanged += (s, e) => { };
         notification.DeviceAdded += (s, e) => { };
         notification.DevicePropertyChanged += (s, e) => { };
         notification.DeviceRemoved += (s, e) => { };
         notification.DeviceStateChanged += (s, e) => { };
     }
 }
예제 #3
0
 public SoundOutManager(CSCoreEngine engine)
 {
     BaseEngine = engine;
     _mmNotificationClient = new MMNotificationClient();
 }