@girs/cvc-1.0 1.0.0-4.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/cvc-1.0-ambient.d.ts +12 -0
- package/cvc-1.0-ambient.js +2 -0
- package/cvc-1.0-import.d.ts +12 -0
- package/cvc-1.0-import.js +3 -0
- package/cvc-1.0.d.ts +903 -0
- package/cvc-1.0.js +6 -0
- package/package.json +55 -0
- package/tsconfig.json +23 -0
- package/typedoc.json +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
# Cvc-1.0
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for Cvc-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.3.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
To use this type definitions, install them with NPM:
|
|
14
|
+
```bash
|
|
15
|
+
npm install @girs/cvc-1.0
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
You can import this package into your project like this:
|
|
21
|
+
```ts
|
|
22
|
+
import Cvc from '@girs/cvc-1.0';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Ambient Modules
|
|
26
|
+
|
|
27
|
+
You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
|
|
28
|
+
For this you need to include `@girs/cvc-1.0` or `@girs/cvc-1.0/ambient` in your `tsconfig` or entry point Typescript file:
|
|
29
|
+
|
|
30
|
+
`index.ts`:
|
|
31
|
+
```ts
|
|
32
|
+
import '@girs/cvc-1.0'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`tsconfig.json`:
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"compilerOptions": {
|
|
39
|
+
...
|
|
40
|
+
},
|
|
41
|
+
"include": ["@girs/cvc-1.0"],
|
|
42
|
+
...
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Now you can import the ambient module with TypeScript support:
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
import Cvc from 'gi://Cvc?version=1.0';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Global import
|
|
53
|
+
|
|
54
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
55
|
+
For this you need to include `@girs/cvc-1.0` or `@girs/cvc-1.0/import` in your `tsconfig` or entry point Typescript file:
|
|
56
|
+
|
|
57
|
+
`index.ts`:
|
|
58
|
+
```ts
|
|
59
|
+
import '@girs/cvc-1.0'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`tsconfig.json`:
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"compilerOptions": {
|
|
66
|
+
...
|
|
67
|
+
},
|
|
68
|
+
"include": ["@girs/cvc-1.0"],
|
|
69
|
+
...
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Now you have also type support for this, too:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
const Cvc = imports.gi.Cvc;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Bundle
|
|
80
|
+
|
|
81
|
+
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
|
82
|
+
|
|
83
|
+
## Other packages
|
|
84
|
+
|
|
85
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
86
|
+
|
package/cvc-1.0.d.ts
ADDED
|
@@ -0,0 +1,903 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import './cvc-1.0-ambient.d.ts';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Cvc-1.0
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type Gio from '@girs/gio-2.0';
|
|
15
|
+
import type GObject from '@girs/gobject-2.0';
|
|
16
|
+
import type GLib from '@girs/glib-2.0';
|
|
17
|
+
|
|
18
|
+
export namespace Cvc {
|
|
19
|
+
enum MixerControlState {
|
|
20
|
+
CLOSED,
|
|
21
|
+
READY,
|
|
22
|
+
CONNECTING,
|
|
23
|
+
FAILED,
|
|
24
|
+
}
|
|
25
|
+
enum MixerStreamState {
|
|
26
|
+
INVALID,
|
|
27
|
+
RUNNING,
|
|
28
|
+
IDLE,
|
|
29
|
+
SUSPENDED,
|
|
30
|
+
}
|
|
31
|
+
enum MixerUIDeviceDirection {
|
|
32
|
+
INPUT,
|
|
33
|
+
OUTPUT,
|
|
34
|
+
}
|
|
35
|
+
const MIXER_UI_DEVICE_INVALID: number;
|
|
36
|
+
enum HeadsetPortChoice {
|
|
37
|
+
NONE,
|
|
38
|
+
HEADPHONES,
|
|
39
|
+
HEADSET,
|
|
40
|
+
MIC,
|
|
41
|
+
}
|
|
42
|
+
module ChannelMap {
|
|
43
|
+
// Signal callback interfaces
|
|
44
|
+
|
|
45
|
+
interface VolumeChanged {
|
|
46
|
+
(object: boolean): void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Constructor properties interface
|
|
50
|
+
|
|
51
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class ChannelMap extends GObject.Object {
|
|
55
|
+
static $gtype: GObject.GType<ChannelMap>;
|
|
56
|
+
|
|
57
|
+
// Constructors of Cvc.ChannelMap
|
|
58
|
+
|
|
59
|
+
constructor(properties?: Partial<ChannelMap.ConstructorProps>, ...args: any[]);
|
|
60
|
+
|
|
61
|
+
_init(...args: any[]): void;
|
|
62
|
+
|
|
63
|
+
static ['new'](): ChannelMap;
|
|
64
|
+
|
|
65
|
+
// Own signals of Cvc.ChannelMap
|
|
66
|
+
|
|
67
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
68
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
69
|
+
emit(id: string, ...args: any[]): void;
|
|
70
|
+
connect(signal: 'volume-changed', callback: (_source: this, object: boolean) => void): number;
|
|
71
|
+
connect_after(signal: 'volume-changed', callback: (_source: this, object: boolean) => void): number;
|
|
72
|
+
emit(signal: 'volume-changed', object: boolean): void;
|
|
73
|
+
|
|
74
|
+
// Own virtual methods of Cvc.ChannelMap
|
|
75
|
+
|
|
76
|
+
vfunc_volume_changed(set: boolean): void;
|
|
77
|
+
|
|
78
|
+
// Own methods of Cvc.ChannelMap
|
|
79
|
+
|
|
80
|
+
can_balance(): boolean;
|
|
81
|
+
can_fade(): boolean;
|
|
82
|
+
can_lfe(): boolean;
|
|
83
|
+
get_balance(): number;
|
|
84
|
+
get_fade(): number;
|
|
85
|
+
get_lfe(): number;
|
|
86
|
+
get_mapping(): string;
|
|
87
|
+
get_num_channels(): number;
|
|
88
|
+
get_volume(): number;
|
|
89
|
+
has_position(position: number): boolean;
|
|
90
|
+
set_balance(value: number): void;
|
|
91
|
+
set_fade(value: number): void;
|
|
92
|
+
set_lfe(value: number): void;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
module MixerCard {
|
|
96
|
+
// Constructor properties interface
|
|
97
|
+
|
|
98
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
99
|
+
human_profile: string;
|
|
100
|
+
humanProfile: string;
|
|
101
|
+
icon_name: string;
|
|
102
|
+
iconName: string;
|
|
103
|
+
id: number;
|
|
104
|
+
index: number;
|
|
105
|
+
name: string;
|
|
106
|
+
pa_context: any;
|
|
107
|
+
paContext: any;
|
|
108
|
+
profile: string;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
class MixerCard extends GObject.Object {
|
|
113
|
+
static $gtype: GObject.GType<MixerCard>;
|
|
114
|
+
|
|
115
|
+
// Own properties of Cvc.MixerCard
|
|
116
|
+
|
|
117
|
+
get human_profile(): string;
|
|
118
|
+
get humanProfile(): string;
|
|
119
|
+
get icon_name(): string;
|
|
120
|
+
set icon_name(val: string);
|
|
121
|
+
get iconName(): string;
|
|
122
|
+
set iconName(val: string);
|
|
123
|
+
get id(): number;
|
|
124
|
+
get index(): number;
|
|
125
|
+
get name(): string;
|
|
126
|
+
set name(val: string);
|
|
127
|
+
get pa_context(): any;
|
|
128
|
+
get paContext(): any;
|
|
129
|
+
get profile(): string;
|
|
130
|
+
set profile(val: string);
|
|
131
|
+
|
|
132
|
+
// Constructors of Cvc.MixerCard
|
|
133
|
+
|
|
134
|
+
constructor(properties?: Partial<MixerCard.ConstructorProps>, ...args: any[]);
|
|
135
|
+
|
|
136
|
+
_init(...args: any[]): void;
|
|
137
|
+
|
|
138
|
+
// Own methods of Cvc.MixerCard
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Change the profile in use on this card.
|
|
142
|
+
* @param profile the profile to change to or %NULL.
|
|
143
|
+
* @returns %TRUE if profile successfully changed or already using this profile.
|
|
144
|
+
*/
|
|
145
|
+
change_profile(profile?: string | null): boolean;
|
|
146
|
+
get_gicon(): Gio.Icon;
|
|
147
|
+
get_icon_name(): string;
|
|
148
|
+
get_id(): number;
|
|
149
|
+
get_index(): number;
|
|
150
|
+
get_name(): string;
|
|
151
|
+
get_ports(): MixerCardPort[];
|
|
152
|
+
get_profiles(): MixerCardProfile[];
|
|
153
|
+
set_icon_name(name: string): boolean;
|
|
154
|
+
set_name(name: string): boolean;
|
|
155
|
+
set_ports(ports: MixerCardPort[]): boolean;
|
|
156
|
+
set_profile(profile: string): boolean;
|
|
157
|
+
set_profiles(profiles: MixerCardProfile[]): boolean;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
module MixerControl {
|
|
161
|
+
// Signal callback interfaces
|
|
162
|
+
|
|
163
|
+
interface ActiveInputUpdate {
|
|
164
|
+
(object: number): void;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface ActiveOutputUpdate {
|
|
168
|
+
(object: number): void;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface AudioDeviceSelectionNeeded {
|
|
172
|
+
(object: number, p0: boolean, p1: number): void;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
interface CardAdded {
|
|
176
|
+
(object: number): void;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
interface CardRemoved {
|
|
180
|
+
(object: number): void;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
interface DefaultSinkChanged {
|
|
184
|
+
(object: number): void;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
interface DefaultSourceChanged {
|
|
188
|
+
(object: number): void;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface InputAdded {
|
|
192
|
+
(object: number): void;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
interface InputRemoved {
|
|
196
|
+
(object: number): void;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
interface OutputAdded {
|
|
200
|
+
(object: number): void;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
interface OutputRemoved {
|
|
204
|
+
(object: number): void;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface StateChanged {
|
|
208
|
+
(object: number): void;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface StreamAdded {
|
|
212
|
+
(object: number): void;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
interface StreamChanged {
|
|
216
|
+
(object: number): void;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
interface StreamRemoved {
|
|
220
|
+
(object: number): void;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Constructor properties interface
|
|
224
|
+
|
|
225
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
226
|
+
name: string;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
class MixerControl extends GObject.Object {
|
|
231
|
+
static $gtype: GObject.GType<MixerControl>;
|
|
232
|
+
|
|
233
|
+
// Own properties of Cvc.MixerControl
|
|
234
|
+
|
|
235
|
+
get name(): string;
|
|
236
|
+
|
|
237
|
+
// Constructors of Cvc.MixerControl
|
|
238
|
+
|
|
239
|
+
constructor(properties?: Partial<MixerControl.ConstructorProps>, ...args: any[]);
|
|
240
|
+
|
|
241
|
+
_init(...args: any[]): void;
|
|
242
|
+
|
|
243
|
+
static ['new'](name: string): MixerControl;
|
|
244
|
+
|
|
245
|
+
// Own signals of Cvc.MixerControl
|
|
246
|
+
|
|
247
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
248
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
249
|
+
emit(id: string, ...args: any[]): void;
|
|
250
|
+
connect(signal: 'active-input-update', callback: (_source: this, object: number) => void): number;
|
|
251
|
+
connect_after(signal: 'active-input-update', callback: (_source: this, object: number) => void): number;
|
|
252
|
+
emit(signal: 'active-input-update', object: number): void;
|
|
253
|
+
connect(signal: 'active-output-update', callback: (_source: this, object: number) => void): number;
|
|
254
|
+
connect_after(signal: 'active-output-update', callback: (_source: this, object: number) => void): number;
|
|
255
|
+
emit(signal: 'active-output-update', object: number): void;
|
|
256
|
+
connect(
|
|
257
|
+
signal: 'audio-device-selection-needed',
|
|
258
|
+
callback: (_source: this, object: number, p0: boolean, p1: number) => void,
|
|
259
|
+
): number;
|
|
260
|
+
connect_after(
|
|
261
|
+
signal: 'audio-device-selection-needed',
|
|
262
|
+
callback: (_source: this, object: number, p0: boolean, p1: number) => void,
|
|
263
|
+
): number;
|
|
264
|
+
emit(signal: 'audio-device-selection-needed', object: number, p0: boolean, p1: number): void;
|
|
265
|
+
connect(signal: 'card-added', callback: (_source: this, object: number) => void): number;
|
|
266
|
+
connect_after(signal: 'card-added', callback: (_source: this, object: number) => void): number;
|
|
267
|
+
emit(signal: 'card-added', object: number): void;
|
|
268
|
+
connect(signal: 'card-removed', callback: (_source: this, object: number) => void): number;
|
|
269
|
+
connect_after(signal: 'card-removed', callback: (_source: this, object: number) => void): number;
|
|
270
|
+
emit(signal: 'card-removed', object: number): void;
|
|
271
|
+
connect(signal: 'default-sink-changed', callback: (_source: this, object: number) => void): number;
|
|
272
|
+
connect_after(signal: 'default-sink-changed', callback: (_source: this, object: number) => void): number;
|
|
273
|
+
emit(signal: 'default-sink-changed', object: number): void;
|
|
274
|
+
connect(signal: 'default-source-changed', callback: (_source: this, object: number) => void): number;
|
|
275
|
+
connect_after(signal: 'default-source-changed', callback: (_source: this, object: number) => void): number;
|
|
276
|
+
emit(signal: 'default-source-changed', object: number): void;
|
|
277
|
+
connect(signal: 'input-added', callback: (_source: this, object: number) => void): number;
|
|
278
|
+
connect_after(signal: 'input-added', callback: (_source: this, object: number) => void): number;
|
|
279
|
+
emit(signal: 'input-added', object: number): void;
|
|
280
|
+
connect(signal: 'input-removed', callback: (_source: this, object: number) => void): number;
|
|
281
|
+
connect_after(signal: 'input-removed', callback: (_source: this, object: number) => void): number;
|
|
282
|
+
emit(signal: 'input-removed', object: number): void;
|
|
283
|
+
connect(signal: 'output-added', callback: (_source: this, object: number) => void): number;
|
|
284
|
+
connect_after(signal: 'output-added', callback: (_source: this, object: number) => void): number;
|
|
285
|
+
emit(signal: 'output-added', object: number): void;
|
|
286
|
+
connect(signal: 'output-removed', callback: (_source: this, object: number) => void): number;
|
|
287
|
+
connect_after(signal: 'output-removed', callback: (_source: this, object: number) => void): number;
|
|
288
|
+
emit(signal: 'output-removed', object: number): void;
|
|
289
|
+
connect(signal: 'state-changed', callback: (_source: this, object: number) => void): number;
|
|
290
|
+
connect_after(signal: 'state-changed', callback: (_source: this, object: number) => void): number;
|
|
291
|
+
emit(signal: 'state-changed', object: number): void;
|
|
292
|
+
connect(signal: 'stream-added', callback: (_source: this, object: number) => void): number;
|
|
293
|
+
connect_after(signal: 'stream-added', callback: (_source: this, object: number) => void): number;
|
|
294
|
+
emit(signal: 'stream-added', object: number): void;
|
|
295
|
+
connect(signal: 'stream-changed', callback: (_source: this, object: number) => void): number;
|
|
296
|
+
connect_after(signal: 'stream-changed', callback: (_source: this, object: number) => void): number;
|
|
297
|
+
emit(signal: 'stream-changed', object: number): void;
|
|
298
|
+
connect(signal: 'stream-removed', callback: (_source: this, object: number) => void): number;
|
|
299
|
+
connect_after(signal: 'stream-removed', callback: (_source: this, object: number) => void): number;
|
|
300
|
+
emit(signal: 'stream-removed', object: number): void;
|
|
301
|
+
|
|
302
|
+
// Own virtual methods of Cvc.MixerControl
|
|
303
|
+
|
|
304
|
+
vfunc_active_input_update(id: number): void;
|
|
305
|
+
vfunc_active_output_update(id: number): void;
|
|
306
|
+
vfunc_audio_device_selection_needed(id: number, show_dialog: boolean, choices: HeadsetPortChoice): void;
|
|
307
|
+
vfunc_card_added(id: number): void;
|
|
308
|
+
vfunc_card_removed(id: number): void;
|
|
309
|
+
vfunc_default_sink_changed(id: number): void;
|
|
310
|
+
vfunc_default_source_changed(id: number): void;
|
|
311
|
+
vfunc_input_added(id: number): void;
|
|
312
|
+
vfunc_input_removed(id: number): void;
|
|
313
|
+
vfunc_output_added(id: number): void;
|
|
314
|
+
vfunc_output_removed(id: number): void;
|
|
315
|
+
vfunc_state_changed(new_state: MixerControlState): void;
|
|
316
|
+
vfunc_stream_added(id: number): void;
|
|
317
|
+
vfunc_stream_changed(id: number): void;
|
|
318
|
+
vfunc_stream_removed(id: number): void;
|
|
319
|
+
|
|
320
|
+
// Own methods of Cvc.MixerControl
|
|
321
|
+
|
|
322
|
+
change_input(input: MixerUIDevice): void;
|
|
323
|
+
change_output(output: MixerUIDevice): void;
|
|
324
|
+
change_profile_on_selected_device(device: MixerUIDevice, profile?: string | null): boolean;
|
|
325
|
+
close(): boolean;
|
|
326
|
+
get_cards(): MixerCard[];
|
|
327
|
+
get_default_sink(): MixerStream;
|
|
328
|
+
get_default_source(): MixerStream;
|
|
329
|
+
get_event_sink_input(): MixerStream;
|
|
330
|
+
get_sink_inputs(): MixerSinkInput[];
|
|
331
|
+
get_sinks(): MixerSink[];
|
|
332
|
+
get_source_outputs(): MixerSourceOutput[];
|
|
333
|
+
get_sources(): MixerSource[];
|
|
334
|
+
get_state(): MixerControlState;
|
|
335
|
+
get_stream_from_device(device: MixerUIDevice): MixerStream;
|
|
336
|
+
get_streams(): MixerStream[];
|
|
337
|
+
get_vol_max_amplified(): number;
|
|
338
|
+
get_vol_max_norm(): number;
|
|
339
|
+
lookup_card_id(id: number): MixerCard;
|
|
340
|
+
lookup_device_from_stream(stream: MixerStream): MixerUIDevice;
|
|
341
|
+
lookup_input_id(id: number): MixerUIDevice;
|
|
342
|
+
lookup_output_id(id: number): MixerUIDevice;
|
|
343
|
+
lookup_stream_id(id: number): MixerStream;
|
|
344
|
+
open(): boolean;
|
|
345
|
+
set_default_sink(stream: MixerStream): boolean;
|
|
346
|
+
set_default_source(stream: MixerStream): boolean;
|
|
347
|
+
set_headset_port(id: number, choices: HeadsetPortChoice): void;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
module MixerEventRole {
|
|
351
|
+
// Constructor properties interface
|
|
352
|
+
|
|
353
|
+
interface ConstructorProps extends MixerStream.ConstructorProps {
|
|
354
|
+
device: string;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
class MixerEventRole extends MixerStream {
|
|
359
|
+
static $gtype: GObject.GType<MixerEventRole>;
|
|
360
|
+
|
|
361
|
+
// Own properties of Cvc.MixerEventRole
|
|
362
|
+
|
|
363
|
+
get device(): string;
|
|
364
|
+
set device(val: string);
|
|
365
|
+
|
|
366
|
+
// Constructors of Cvc.MixerEventRole
|
|
367
|
+
|
|
368
|
+
constructor(properties?: Partial<MixerEventRole.ConstructorProps>, ...args: any[]);
|
|
369
|
+
|
|
370
|
+
_init(...args: any[]): void;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
module MixerSink {
|
|
374
|
+
// Constructor properties interface
|
|
375
|
+
|
|
376
|
+
interface ConstructorProps extends MixerStream.ConstructorProps {}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
class MixerSink extends MixerStream {
|
|
380
|
+
static $gtype: GObject.GType<MixerSink>;
|
|
381
|
+
|
|
382
|
+
// Constructors of Cvc.MixerSink
|
|
383
|
+
|
|
384
|
+
constructor(properties?: Partial<MixerSink.ConstructorProps>, ...args: any[]);
|
|
385
|
+
|
|
386
|
+
_init(...args: any[]): void;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
module MixerSinkInput {
|
|
390
|
+
// Constructor properties interface
|
|
391
|
+
|
|
392
|
+
interface ConstructorProps extends MixerStream.ConstructorProps {}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
class MixerSinkInput extends MixerStream {
|
|
396
|
+
static $gtype: GObject.GType<MixerSinkInput>;
|
|
397
|
+
|
|
398
|
+
// Constructors of Cvc.MixerSinkInput
|
|
399
|
+
|
|
400
|
+
constructor(properties?: Partial<MixerSinkInput.ConstructorProps>, ...args: any[]);
|
|
401
|
+
|
|
402
|
+
_init(...args: any[]): void;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
module MixerSource {
|
|
406
|
+
// Constructor properties interface
|
|
407
|
+
|
|
408
|
+
interface ConstructorProps extends MixerStream.ConstructorProps {}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
class MixerSource extends MixerStream {
|
|
412
|
+
static $gtype: GObject.GType<MixerSource>;
|
|
413
|
+
|
|
414
|
+
// Constructors of Cvc.MixerSource
|
|
415
|
+
|
|
416
|
+
constructor(properties?: Partial<MixerSource.ConstructorProps>, ...args: any[]);
|
|
417
|
+
|
|
418
|
+
_init(...args: any[]): void;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
module MixerSourceOutput {
|
|
422
|
+
// Constructor properties interface
|
|
423
|
+
|
|
424
|
+
interface ConstructorProps extends MixerStream.ConstructorProps {}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
class MixerSourceOutput extends MixerStream {
|
|
428
|
+
static $gtype: GObject.GType<MixerSourceOutput>;
|
|
429
|
+
|
|
430
|
+
// Constructors of Cvc.MixerSourceOutput
|
|
431
|
+
|
|
432
|
+
constructor(properties?: Partial<MixerSourceOutput.ConstructorProps>, ...args: any[]);
|
|
433
|
+
|
|
434
|
+
_init(...args: any[]): void;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
module MixerStream {
|
|
438
|
+
// Signal callback interfaces
|
|
439
|
+
|
|
440
|
+
interface MonitorSuspend {
|
|
441
|
+
(): void;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
interface MonitorUpdate {
|
|
445
|
+
(object: number): void;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// Constructor properties interface
|
|
449
|
+
|
|
450
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
451
|
+
application_id: string;
|
|
452
|
+
applicationId: string;
|
|
453
|
+
can_decibel: boolean;
|
|
454
|
+
canDecibel: boolean;
|
|
455
|
+
card_index: number;
|
|
456
|
+
cardIndex: number;
|
|
457
|
+
channel_map: ChannelMap;
|
|
458
|
+
channelMap: ChannelMap;
|
|
459
|
+
decibel: number;
|
|
460
|
+
description: string;
|
|
461
|
+
form_factor: string;
|
|
462
|
+
formFactor: string;
|
|
463
|
+
icon_name: string;
|
|
464
|
+
iconName: string;
|
|
465
|
+
id: number;
|
|
466
|
+
index: number;
|
|
467
|
+
is_event_stream: boolean;
|
|
468
|
+
isEventStream: boolean;
|
|
469
|
+
is_muted: boolean;
|
|
470
|
+
isMuted: boolean;
|
|
471
|
+
is_virtual: boolean;
|
|
472
|
+
isVirtual: boolean;
|
|
473
|
+
name: string;
|
|
474
|
+
pa_context: any;
|
|
475
|
+
paContext: any;
|
|
476
|
+
port: string;
|
|
477
|
+
state: MixerStreamState;
|
|
478
|
+
sysfs_path: string;
|
|
479
|
+
sysfsPath: string;
|
|
480
|
+
volume: number;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
abstract class MixerStream extends GObject.Object {
|
|
485
|
+
static $gtype: GObject.GType<MixerStream>;
|
|
486
|
+
|
|
487
|
+
// Own properties of Cvc.MixerStream
|
|
488
|
+
|
|
489
|
+
get application_id(): string;
|
|
490
|
+
set application_id(val: string);
|
|
491
|
+
get applicationId(): string;
|
|
492
|
+
set applicationId(val: string);
|
|
493
|
+
get can_decibel(): boolean;
|
|
494
|
+
set can_decibel(val: boolean);
|
|
495
|
+
get canDecibel(): boolean;
|
|
496
|
+
set canDecibel(val: boolean);
|
|
497
|
+
get card_index(): number;
|
|
498
|
+
set card_index(val: number);
|
|
499
|
+
get cardIndex(): number;
|
|
500
|
+
set cardIndex(val: number);
|
|
501
|
+
get channel_map(): ChannelMap;
|
|
502
|
+
set channel_map(val: ChannelMap);
|
|
503
|
+
get channelMap(): ChannelMap;
|
|
504
|
+
set channelMap(val: ChannelMap);
|
|
505
|
+
get decibel(): number;
|
|
506
|
+
set decibel(val: number);
|
|
507
|
+
get description(): string;
|
|
508
|
+
set description(val: string);
|
|
509
|
+
get form_factor(): string;
|
|
510
|
+
set form_factor(val: string);
|
|
511
|
+
get formFactor(): string;
|
|
512
|
+
set formFactor(val: string);
|
|
513
|
+
get icon_name(): string;
|
|
514
|
+
set icon_name(val: string);
|
|
515
|
+
get iconName(): string;
|
|
516
|
+
set iconName(val: string);
|
|
517
|
+
get id(): number;
|
|
518
|
+
get index(): number;
|
|
519
|
+
get is_event_stream(): boolean;
|
|
520
|
+
set is_event_stream(val: boolean);
|
|
521
|
+
get isEventStream(): boolean;
|
|
522
|
+
set isEventStream(val: boolean);
|
|
523
|
+
get is_muted(): boolean;
|
|
524
|
+
set is_muted(val: boolean);
|
|
525
|
+
get isMuted(): boolean;
|
|
526
|
+
set isMuted(val: boolean);
|
|
527
|
+
get is_virtual(): boolean;
|
|
528
|
+
set is_virtual(val: boolean);
|
|
529
|
+
get isVirtual(): boolean;
|
|
530
|
+
set isVirtual(val: boolean);
|
|
531
|
+
get name(): string;
|
|
532
|
+
set name(val: string);
|
|
533
|
+
get pa_context(): any;
|
|
534
|
+
get paContext(): any;
|
|
535
|
+
get port(): string;
|
|
536
|
+
set port(val: string);
|
|
537
|
+
get state(): MixerStreamState;
|
|
538
|
+
set state(val: MixerStreamState);
|
|
539
|
+
get sysfs_path(): string;
|
|
540
|
+
set sysfs_path(val: string);
|
|
541
|
+
get sysfsPath(): string;
|
|
542
|
+
set sysfsPath(val: string);
|
|
543
|
+
get volume(): number;
|
|
544
|
+
set volume(val: number);
|
|
545
|
+
|
|
546
|
+
// Constructors of Cvc.MixerStream
|
|
547
|
+
|
|
548
|
+
constructor(properties?: Partial<MixerStream.ConstructorProps>, ...args: any[]);
|
|
549
|
+
|
|
550
|
+
_init(...args: any[]): void;
|
|
551
|
+
|
|
552
|
+
// Own signals of Cvc.MixerStream
|
|
553
|
+
|
|
554
|
+
connect(id: string, callback: (...args: any[]) => any): number;
|
|
555
|
+
connect_after(id: string, callback: (...args: any[]) => any): number;
|
|
556
|
+
emit(id: string, ...args: any[]): void;
|
|
557
|
+
connect(signal: 'monitor-suspend', callback: (_source: this) => void): number;
|
|
558
|
+
connect_after(signal: 'monitor-suspend', callback: (_source: this) => void): number;
|
|
559
|
+
emit(signal: 'monitor-suspend'): void;
|
|
560
|
+
connect(signal: 'monitor-update', callback: (_source: this, object: number) => void): number;
|
|
561
|
+
connect_after(signal: 'monitor-update', callback: (_source: this, object: number) => void): number;
|
|
562
|
+
emit(signal: 'monitor-update', object: number): void;
|
|
563
|
+
|
|
564
|
+
// Own virtual methods of Cvc.MixerStream
|
|
565
|
+
|
|
566
|
+
vfunc_change_is_muted(is_muted: boolean): boolean;
|
|
567
|
+
vfunc_change_port(port: string): boolean;
|
|
568
|
+
vfunc_monitor_suspend(): void;
|
|
569
|
+
vfunc_monitor_update(v: number): void;
|
|
570
|
+
vfunc_push_volume(operation?: any | null): boolean;
|
|
571
|
+
|
|
572
|
+
// Own methods of Cvc.MixerStream
|
|
573
|
+
|
|
574
|
+
change_is_muted(is_muted: boolean): boolean;
|
|
575
|
+
change_port(port: string): boolean;
|
|
576
|
+
create_monitor(): void;
|
|
577
|
+
get_application_id(): string;
|
|
578
|
+
get_base_volume(): number;
|
|
579
|
+
get_can_decibel(): boolean;
|
|
580
|
+
get_card_index(): number;
|
|
581
|
+
get_channel_map(): ChannelMap;
|
|
582
|
+
get_decibel(): number;
|
|
583
|
+
get_description(): string;
|
|
584
|
+
get_form_factor(): string;
|
|
585
|
+
get_gicon(): Gio.Icon;
|
|
586
|
+
get_icon_name(): string;
|
|
587
|
+
get_id(): number;
|
|
588
|
+
get_index(): number;
|
|
589
|
+
get_is_muted(): boolean;
|
|
590
|
+
get_name(): string;
|
|
591
|
+
get_port(): MixerStreamPort;
|
|
592
|
+
get_ports(): MixerStreamPort[];
|
|
593
|
+
get_state(): MixerStreamState;
|
|
594
|
+
get_sysfs_path(): string;
|
|
595
|
+
get_volume(): number;
|
|
596
|
+
is_running(): boolean;
|
|
597
|
+
push_volume(): boolean;
|
|
598
|
+
remove_monitor(): void;
|
|
599
|
+
set_application_id(application_id: string): boolean;
|
|
600
|
+
set_base_volume(base_volume: number): boolean;
|
|
601
|
+
set_can_decibel(can_decibel: boolean): boolean;
|
|
602
|
+
set_card_index(card_index: number): boolean;
|
|
603
|
+
set_decibel(db: number): boolean;
|
|
604
|
+
set_description(description: string): boolean;
|
|
605
|
+
set_form_factor(form_factor: string): boolean;
|
|
606
|
+
set_icon_name(name: string): boolean;
|
|
607
|
+
set_is_event_stream(is_event_stream: boolean): boolean;
|
|
608
|
+
set_is_muted(is_muted: boolean): boolean;
|
|
609
|
+
set_is_virtual(is_event_stream: boolean): boolean;
|
|
610
|
+
set_name(name: string): boolean;
|
|
611
|
+
set_port(port: string): boolean;
|
|
612
|
+
set_ports(ports: MixerStreamPort[]): boolean;
|
|
613
|
+
set_state(state: MixerStreamState): boolean;
|
|
614
|
+
set_sysfs_path(sysfs_path: string): boolean;
|
|
615
|
+
set_volume(volume: number): boolean;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
module MixerUIDevice {
|
|
619
|
+
// Constructor properties interface
|
|
620
|
+
|
|
621
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
622
|
+
card: any;
|
|
623
|
+
description: string;
|
|
624
|
+
icon_name: string;
|
|
625
|
+
iconName: string;
|
|
626
|
+
origin: string;
|
|
627
|
+
port_available: boolean;
|
|
628
|
+
portAvailable: boolean;
|
|
629
|
+
port_name: string;
|
|
630
|
+
portName: string;
|
|
631
|
+
stream_id: number;
|
|
632
|
+
streamId: number;
|
|
633
|
+
type: number;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
class MixerUIDevice extends GObject.Object {
|
|
638
|
+
static $gtype: GObject.GType<MixerUIDevice>;
|
|
639
|
+
|
|
640
|
+
// Own properties of Cvc.MixerUIDevice
|
|
641
|
+
|
|
642
|
+
get card(): any;
|
|
643
|
+
set card(val: any);
|
|
644
|
+
get description(): string;
|
|
645
|
+
set description(val: string);
|
|
646
|
+
get icon_name(): string;
|
|
647
|
+
set icon_name(val: string);
|
|
648
|
+
get iconName(): string;
|
|
649
|
+
set iconName(val: string);
|
|
650
|
+
get origin(): string;
|
|
651
|
+
set origin(val: string);
|
|
652
|
+
get port_available(): boolean;
|
|
653
|
+
set port_available(val: boolean);
|
|
654
|
+
get portAvailable(): boolean;
|
|
655
|
+
set portAvailable(val: boolean);
|
|
656
|
+
get port_name(): string;
|
|
657
|
+
set port_name(val: string);
|
|
658
|
+
get portName(): string;
|
|
659
|
+
set portName(val: string);
|
|
660
|
+
get stream_id(): number;
|
|
661
|
+
set stream_id(val: number);
|
|
662
|
+
get streamId(): number;
|
|
663
|
+
set streamId(val: number);
|
|
664
|
+
get type(): number;
|
|
665
|
+
set type(val: number);
|
|
666
|
+
|
|
667
|
+
// Constructors of Cvc.MixerUIDevice
|
|
668
|
+
|
|
669
|
+
constructor(properties?: Partial<MixerUIDevice.ConstructorProps>, ...args: any[]);
|
|
670
|
+
|
|
671
|
+
_init(...args: any[]): void;
|
|
672
|
+
|
|
673
|
+
// Own methods of Cvc.MixerUIDevice
|
|
674
|
+
|
|
675
|
+
get_active_profile(): string;
|
|
676
|
+
get_best_profile(selected: string | null, current: string): string;
|
|
677
|
+
get_description(): string;
|
|
678
|
+
get_gicon(): Gio.Icon;
|
|
679
|
+
get_icon_name(): string;
|
|
680
|
+
get_id(): number;
|
|
681
|
+
get_matching_profile(profile: string): string;
|
|
682
|
+
get_origin(): string;
|
|
683
|
+
get_port(): string;
|
|
684
|
+
get_profiles(): MixerCardProfile[];
|
|
685
|
+
get_stream_id(): number;
|
|
686
|
+
get_supported_profiles(): MixerCardProfile[];
|
|
687
|
+
get_top_priority_profile(): string;
|
|
688
|
+
get_user_preferred_profile(): string;
|
|
689
|
+
has_ports(): boolean;
|
|
690
|
+
invalidate_stream(): void;
|
|
691
|
+
is_output(): boolean;
|
|
692
|
+
/**
|
|
693
|
+
* Assigns value to
|
|
694
|
+
* - device->priv->profiles (profiles to be added to combobox)
|
|
695
|
+
* - device->priv->supported_profiles (all profiles of this port)
|
|
696
|
+
* - device->priv->disable_profile_swapping (whether to show the combobox)
|
|
697
|
+
*
|
|
698
|
+
* This method attempts to reduce the list of profiles visible to the user by figuring out
|
|
699
|
+
* from the context of that device (whether it's an input or an output) what profiles
|
|
700
|
+
* actually provide an alternative.
|
|
701
|
+
*
|
|
702
|
+
* It does this by the following.
|
|
703
|
+
* - It ignores off profiles.
|
|
704
|
+
* - It takes the canonical name of the profile. That name is what you get when you
|
|
705
|
+
* ignore the other direction.
|
|
706
|
+
* - In the first iteration, it only adds the names of canonical profiles - i e
|
|
707
|
+
* when the other side is turned off.
|
|
708
|
+
* - Normally the first iteration covers all cases, but sometimes (e g bluetooth)
|
|
709
|
+
* it doesn't, so add other profiles whose canonical name isn't already added
|
|
710
|
+
* in a second iteration.
|
|
711
|
+
* @param in_profiles a list of GvcMixerCardProfile
|
|
712
|
+
*/
|
|
713
|
+
set_profiles(in_profiles: MixerCardProfile[]): void;
|
|
714
|
+
set_user_preferred_profile(profile: string): void;
|
|
715
|
+
should_profiles_be_hidden(): boolean;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
type ChannelMapClass = typeof ChannelMap;
|
|
719
|
+
abstract class ChannelMapPrivate {
|
|
720
|
+
static $gtype: GObject.GType<ChannelMapPrivate>;
|
|
721
|
+
|
|
722
|
+
// Constructors of Cvc.ChannelMapPrivate
|
|
723
|
+
|
|
724
|
+
_init(...args: any[]): void;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
type MixerCardClass = typeof MixerCard;
|
|
728
|
+
class MixerCardPort {
|
|
729
|
+
static $gtype: GObject.GType<MixerCardPort>;
|
|
730
|
+
|
|
731
|
+
// Own fields of Cvc.MixerCardPort
|
|
732
|
+
|
|
733
|
+
port: string;
|
|
734
|
+
human_port: string;
|
|
735
|
+
icon_name: string;
|
|
736
|
+
priority: number;
|
|
737
|
+
available: number;
|
|
738
|
+
direction: number;
|
|
739
|
+
profiles: any[];
|
|
740
|
+
|
|
741
|
+
// Constructors of Cvc.MixerCardPort
|
|
742
|
+
|
|
743
|
+
constructor(
|
|
744
|
+
properties?: Partial<{
|
|
745
|
+
port: string;
|
|
746
|
+
human_port: string;
|
|
747
|
+
icon_name: string;
|
|
748
|
+
priority: number;
|
|
749
|
+
available: number;
|
|
750
|
+
direction: number;
|
|
751
|
+
}>,
|
|
752
|
+
);
|
|
753
|
+
_init(...args: any[]): void;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
abstract class MixerCardPrivate {
|
|
757
|
+
static $gtype: GObject.GType<MixerCardPrivate>;
|
|
758
|
+
|
|
759
|
+
// Constructors of Cvc.MixerCardPrivate
|
|
760
|
+
|
|
761
|
+
_init(...args: any[]): void;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
class MixerCardProfile {
|
|
765
|
+
static $gtype: GObject.GType<MixerCardProfile>;
|
|
766
|
+
|
|
767
|
+
// Own fields of Cvc.MixerCardProfile
|
|
768
|
+
|
|
769
|
+
profile: string;
|
|
770
|
+
human_profile: string;
|
|
771
|
+
status: string;
|
|
772
|
+
priority: number;
|
|
773
|
+
n_sinks: number;
|
|
774
|
+
n_sources: number;
|
|
775
|
+
|
|
776
|
+
// Constructors of Cvc.MixerCardProfile
|
|
777
|
+
|
|
778
|
+
constructor(
|
|
779
|
+
properties?: Partial<{
|
|
780
|
+
profile: string;
|
|
781
|
+
human_profile: string;
|
|
782
|
+
status: string;
|
|
783
|
+
priority: number;
|
|
784
|
+
n_sinks: number;
|
|
785
|
+
n_sources: number;
|
|
786
|
+
}>,
|
|
787
|
+
);
|
|
788
|
+
_init(...args: any[]): void;
|
|
789
|
+
|
|
790
|
+
// Own methods of Cvc.MixerCardProfile
|
|
791
|
+
|
|
792
|
+
compare(b: MixerCardProfile): number;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
type MixerControlClass = typeof MixerControl;
|
|
796
|
+
abstract class MixerControlPrivate {
|
|
797
|
+
static $gtype: GObject.GType<MixerControlPrivate>;
|
|
798
|
+
|
|
799
|
+
// Constructors of Cvc.MixerControlPrivate
|
|
800
|
+
|
|
801
|
+
_init(...args: any[]): void;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
type MixerEventRoleClass = typeof MixerEventRole;
|
|
805
|
+
abstract class MixerEventRolePrivate {
|
|
806
|
+
static $gtype: GObject.GType<MixerEventRolePrivate>;
|
|
807
|
+
|
|
808
|
+
// Constructors of Cvc.MixerEventRolePrivate
|
|
809
|
+
|
|
810
|
+
_init(...args: any[]): void;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
type MixerSinkClass = typeof MixerSink;
|
|
814
|
+
type MixerSinkInputClass = typeof MixerSinkInput;
|
|
815
|
+
abstract class MixerSinkInputPrivate {
|
|
816
|
+
static $gtype: GObject.GType<MixerSinkInputPrivate>;
|
|
817
|
+
|
|
818
|
+
// Constructors of Cvc.MixerSinkInputPrivate
|
|
819
|
+
|
|
820
|
+
_init(...args: any[]): void;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
abstract class MixerSinkPrivate {
|
|
824
|
+
static $gtype: GObject.GType<MixerSinkPrivate>;
|
|
825
|
+
|
|
826
|
+
// Constructors of Cvc.MixerSinkPrivate
|
|
827
|
+
|
|
828
|
+
_init(...args: any[]): void;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
type MixerSourceClass = typeof MixerSource;
|
|
832
|
+
type MixerSourceOutputClass = typeof MixerSourceOutput;
|
|
833
|
+
abstract class MixerSourceOutputPrivate {
|
|
834
|
+
static $gtype: GObject.GType<MixerSourceOutputPrivate>;
|
|
835
|
+
|
|
836
|
+
// Constructors of Cvc.MixerSourceOutputPrivate
|
|
837
|
+
|
|
838
|
+
_init(...args: any[]): void;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
abstract class MixerSourcePrivate {
|
|
842
|
+
static $gtype: GObject.GType<MixerSourcePrivate>;
|
|
843
|
+
|
|
844
|
+
// Constructors of Cvc.MixerSourcePrivate
|
|
845
|
+
|
|
846
|
+
_init(...args: any[]): void;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
type MixerStreamClass = typeof MixerStream;
|
|
850
|
+
class MixerStreamPort {
|
|
851
|
+
static $gtype: GObject.GType<MixerStreamPort>;
|
|
852
|
+
|
|
853
|
+
// Own fields of Cvc.MixerStreamPort
|
|
854
|
+
|
|
855
|
+
port: string;
|
|
856
|
+
human_port: string;
|
|
857
|
+
priority: number;
|
|
858
|
+
available: boolean;
|
|
859
|
+
|
|
860
|
+
// Constructors of Cvc.MixerStreamPort
|
|
861
|
+
|
|
862
|
+
constructor(
|
|
863
|
+
properties?: Partial<{
|
|
864
|
+
port: string;
|
|
865
|
+
human_port: string;
|
|
866
|
+
priority: number;
|
|
867
|
+
available: boolean;
|
|
868
|
+
}>,
|
|
869
|
+
);
|
|
870
|
+
_init(...args: any[]): void;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
abstract class MixerStreamPrivate {
|
|
874
|
+
static $gtype: GObject.GType<MixerStreamPrivate>;
|
|
875
|
+
|
|
876
|
+
// Constructors of Cvc.MixerStreamPrivate
|
|
877
|
+
|
|
878
|
+
_init(...args: any[]): void;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
type MixerUIDeviceClass = typeof MixerUIDevice;
|
|
882
|
+
abstract class MixerUIDevicePrivate {
|
|
883
|
+
static $gtype: GObject.GType<MixerUIDevicePrivate>;
|
|
884
|
+
|
|
885
|
+
// Constructors of Cvc.MixerUIDevicePrivate
|
|
886
|
+
|
|
887
|
+
_init(...args: any[]): void;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Name of the imported GIR library
|
|
892
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
893
|
+
*/
|
|
894
|
+
const __name__: string;
|
|
895
|
+
/**
|
|
896
|
+
* Version of the imported GIR library
|
|
897
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
898
|
+
*/
|
|
899
|
+
const __version__: string;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export default Cvc;
|
|
903
|
+
// END
|
package/cvc-1.0.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/cvc-1.0",
|
|
3
|
+
"version": "1.0.0-4.0.0-beta.3",
|
|
4
|
+
"description": "GJS TypeScript type definitions for Cvc-1.0, generated from library version 1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "cvc-1.0.js",
|
|
7
|
+
"main": "cvc-1.0.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./cvc-1.0-ambient.d.ts",
|
|
11
|
+
"import": "./cvc-1.0-ambient.js",
|
|
12
|
+
"default": "./cvc-1.0-ambient.js"
|
|
13
|
+
},
|
|
14
|
+
"./import": {
|
|
15
|
+
"types": "./cvc-1.0-import.d.ts",
|
|
16
|
+
"import": "./cvc-1.0-import.js",
|
|
17
|
+
"default": "./cvc-1.0-import.js"
|
|
18
|
+
},
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./cvc-1.0.d.ts",
|
|
21
|
+
"import": "./cvc-1.0.js",
|
|
22
|
+
"default": "./cvc-1.0.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit cvc-1.0.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@girs/gio-2.0": "^2.80.0-4.0.0-beta.3",
|
|
30
|
+
"@girs/gjs": "^4.0.0-beta.3",
|
|
31
|
+
"@girs/glib-2.0": "^2.80.0-4.0.0-beta.3",
|
|
32
|
+
"@girs/gobject-2.0": "^2.80.0-4.0.0-beta.3"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"typescript": "*"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"Gir",
|
|
39
|
+
"TypeScript",
|
|
40
|
+
"types",
|
|
41
|
+
"GObject-Introspection",
|
|
42
|
+
"GJS",
|
|
43
|
+
"Cvc-1.0"
|
|
44
|
+
],
|
|
45
|
+
"author": "ts-for-gir",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/gjsify/types/tree/main/cvc-1.0#readme"
|
|
55
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"baseUrl": "./",
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
// General settings for code generation
|
|
15
|
+
"removeComments": false,
|
|
16
|
+
"inlineSourceMap": false,
|
|
17
|
+
"inlineSources": false,
|
|
18
|
+
"newLine": "LF"
|
|
19
|
+
},
|
|
20
|
+
"include": ["./cvc-1.0.d.ts"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|