forked from gen2brain/malgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enumerations.go
118 lines (99 loc) · 3.31 KB
/
enumerations.go
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package malgo
// Backend type.
type Backend uint32
// Backend enumeration.
const (
BackendWasapi = iota
BackendDsound
BackendWinmm
BackendCoreaudio
BackendSndio
BackendAudio4
BackendOss
BackendPulseaudio
BackendAlsa
BackendJack
BackendAaudio
BackendOpensl
BackendWebaudio
BackendNull
)
// DeviceType type.
type DeviceType uint32
// DeviceType enumeration.
const (
Playback DeviceType = iota + 1
Capture
Duplex
Loopback
)
// ShareMode type.
type ShareMode uint32
// ShareMode enumeration.
const (
Shared ShareMode = iota
Exclusive
)
// PerformanceProfile type.
type PerformanceProfile uint32
// PerformanceProfile enumeration.
const (
LowLatency PerformanceProfile = iota
Conservative
)
// FormatType type.
type FormatType uint32
// Format enumeration.
const (
FormatUnknown FormatType = iota
FormatU8
FormatS16
FormatS24
FormatS32
FormatF32
)
// ThreadPriority type.
type ThreadPriority int32
// ThreadPriority enumeration.
const (
ThreadPriorityIdle ThreadPriority = -5
ThreadPriorityLowest ThreadPriority = -4
ThreadPriorityLow ThreadPriority = -3
ThreadPriorityNormal ThreadPriority = -2
ThreadPriorityHigh ThreadPriority = -1
ThreadPriorityHighest ThreadPriority = 0
ThreadPriorityRealtime ThreadPriority = 1
ThreadPriorityDefault ThreadPriority = 0
)
// ResampleAlgorithm type.
type ResampleAlgorithm uint32
// ResampleAlgorithm enumeration.
const (
ResampleAlgorithmLinear ResampleAlgorithm = 0
ResampleAlgorithmSpeex ResampleAlgorithm = 1
)
// IOSSessionCategory type.
type IOSSessionCategory uint32
// IOSSessionCategory enumeration.
const (
IOSSessionCategoryDefault IOSSessionCategory = iota // AVAudioSessionCategoryPlayAndRecord with AVAudioSessionCategoryOptionDefaultToSpeaker.
IOSSessionCategoryNone // Leave the session category unchanged.
IOSSessionCategoryAmbient // AVAudioSessionCategoryAmbient
IOSSessionCategorySoloAmbient // AVAudioSessionCategorySoloAmbient
IOSSessionCategoryPlayback // AVAudioSessionCategoryPlayback
IOSSessionCategoryRecord // AVAudioSessionCategoryRecord
IOSSessionCategoryPlayAndRecord // AVAudioSessionCategoryPlayAndRecord
IOSSessionCategoryMultiRoute // AVAudioSessionCategoryMultiRoute
)
// IOSSessionCategoryOptions type.
type IOSSessionCategoryOptions uint32
// IOSSessionCategoryOptions enumeration.
const (
IOSSessionCategoryOptionMixWithOthers = 0x01 // AVAudioSessionCategoryOptionMixWithOthers
IOSSessionCategoryOptionDuckOthers = 0x02 // AVAudioSessionCategoryOptionDuckOthers
IOSSessionCategoryOptionAllowBluetooth = 0x04 // AVAudioSessionCategoryOptionAllowBluetooth
IOSSessionCategoryOptionDefaultToSpeaker = 0x08 // AVAudioSessionCategoryOptionDefaultToSpeaker
IOSSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers = 0x11 // AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers
IOSSessionCategoryOptionAllowBluetoothA2dp = 0x20 // AVAudioSessionCategoryOptionAllowBluetoothA2DP
IOSSessionCategoryOptionAllowAirPlay = 0x40 // AVAudioSessionCategoryOptionAllowAirPlay
)