-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathIAudioController.Generic.cs
62 lines (36 loc) · 1.78 KB
/
IAudioController.Generic.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace AudioSwitcher.AudioApi
{
public interface IAudioController<T> : IAudioController
where T : IDevice
{
new T DefaultPlaybackDevice { get; }
new T DefaultPlaybackCommunicationsDevice { get; }
new T DefaultCaptureDevice { get; }
new T DefaultCaptureCommunicationsDevice { get; }
new T GetDevice(Guid id);
new Task<T> GetDeviceAsync(Guid id);
new T GetDevice(Guid id, DeviceState state);
new Task<T> GetDeviceAsync(Guid id, DeviceState state);
new T GetDefaultDevice(DeviceType deviceType, Role role);
new Task<T> GetDefaultDeviceAsync(DeviceType deviceType, Role role);
new IEnumerable<T> GetDevices();
new Task<IEnumerable<T>> GetDevicesAsync();
new IEnumerable<T> GetDevices(DeviceState state);
new Task<IEnumerable<T>> GetDevicesAsync(DeviceState state);
new IEnumerable<T> GetDevices(DeviceType deviceType);
new Task<IEnumerable<T>> GetDevicesAsync(DeviceType deviceType);
new IEnumerable<T> GetDevices(DeviceType deviceType, DeviceState state);
new Task<IEnumerable<T>> GetDevicesAsync(DeviceType deviceType, DeviceState state);
new IEnumerable<T> GetPlaybackDevices();
new IEnumerable<T> GetPlaybackDevices(DeviceState state);
new Task<IEnumerable<T>> GetPlaybackDevicesAsync();
new Task<IEnumerable<T>> GetPlaybackDevicesAsync(DeviceState deviceState);
new IEnumerable<T> GetCaptureDevices();
new IEnumerable<T> GetCaptureDevices(DeviceState state);
new Task<IEnumerable<T>> GetCaptureDevicesAsync();
new Task<IEnumerable<T>> GetCaptureDevicesAsync(DeviceState deviceState);
}
}