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