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