public CSCoreSoundOutProvider() { _mmNotificationClient = new MMNotificationClient(); SoundOutModes = new ObservableCollection<ISoundOutMode>(); LoadSoundOutModes(); LoadEvents(); }
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) => { }; } }
public SoundOutManager(CSCoreEngine engine) { BaseEngine = engine; _mmNotificationClient = new MMNotificationClient(); }