Пример #1
0
 Task <IEnumerable <IDevice> > IAudioController.GetDevicesAsync(DeviceType deviceType)
 {
     return(TaskShim.FromResult(GetDevices(deviceType).Cast <IDevice>()));
 }
Пример #2
0
 public virtual Task <T> GetDefaultDeviceAsync(DeviceType deviceType, Role role)
 {
     return(TaskShim.FromResult(GetDefaultDevice(deviceType, role)));
 }
Пример #3
0
 public virtual Task <IEnumerable <T> > GetDevicesAsync(DeviceState state)
 {
     return(TaskShim.FromResult(GetDevices(state)));
 }
Пример #4
0
 public virtual Task <T> GetDeviceAsync(Guid id)
 {
     return(TaskShim.FromResult(GetDevice(id)));
 }
Пример #5
0
 public virtual Task <T> GetDeviceAsync(Guid id, DeviceState state)
 {
     return(TaskShim.FromResult(GetDevice(id, state)));
 }
Пример #6
0
 Task <IEnumerable <IDevice> > IAudioController.GetPlaybackDevicesAsync(DeviceState deviceState)
 {
     return(TaskShim.FromResult(GetPlaybackDevices(deviceState).Cast <IDevice>()));
 }
Пример #7
0
 Task <IEnumerable <IDevice> > IAudioController.GetCaptureDevicesAsync(DeviceState deviceState)
 {
     return(TaskShim.FromResult(GetCaptureDevices(deviceState).OfType <IDevice>()));
 }
Пример #8
0
 Task <IDevice> IAudioController.GetDeviceAsync(Guid id, DeviceState state)
 {
     return(TaskShim.FromResult(GetDevice(id, state) as IDevice));
 }
Пример #9
0
 Task <IDevice> IAudioController.GetDefaultDeviceAsync(DeviceType deviceType, Role role)
 {
     return(TaskShim.FromResult(GetDefaultDevice(deviceType, role) as IDevice));
 }
Пример #10
0
 public virtual Task <IEnumerable <T> > GetCaptureDevicesAsync()
 {
     return(TaskShim.FromResult(GetCaptureDevices(DefaultDeviceStateFilter)));
 }
Пример #11
0
 public virtual Task <IEnumerable <T> > GetPlaybackDevicesAsync(DeviceState deviceState)
 {
     return(TaskShim.FromResult(GetPlaybackDevices(deviceState)));
 }
Пример #12
0
 public virtual Task <IEnumerable <IDevice> > GetPlaybackDevicesAsync()
 {
     return(TaskShim.FromResult(GetPlaybackDevices()));
 }
Пример #13
0
 public virtual Task <IEnumerable <IDevice> > GetDevicesAsync(DeviceType deviceType, DeviceState state)
 {
     return(TaskShim.FromResult(GetDevices(deviceType, state)));
 }
Пример #14
0
 public virtual Task <IEnumerable <IDevice> > GetCaptureDevicesAsync(DeviceState deviceState)
 {
     return(TaskShim.FromResult(GetCaptureDevices(deviceState)));
 }