@4players/odin-plugin-web 1.0.0-alpha.8 → 1.0.0

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.
@@ -1,97 +0,0 @@
1
- export declare namespace OdinWasm {
2
- function _malloc(size: number): number;
3
- function _free(ptr: number): void;
4
-
5
- const ready: Promise<typeof OdinWasm>;
6
-
7
- const HEAP8: Int8Array;
8
- const HEAPU8: Uint8Array;
9
- const HEAP16: Int16Array;
10
- const HEAPU16: Uint16Array;
11
- const HEAP32: Int32Array;
12
- const HEAPU32: Uint32Array;
13
- const HEAPF32: Float32Array;
14
- const HEAPF64: Float64Array;
15
-
16
- interface BindInfo {
17
- count: {
18
- value: number;
19
- };
20
- ptr: number;
21
- }
22
-
23
- class Encoder {
24
- '$$': BindInfo;
25
-
26
- constructor(
27
- sample_rate: number,
28
- fec_packet_loss: number,
29
- voip: boolean,
30
- vad_preload: number
31
- );
32
-
33
- complexity: number;
34
-
35
- readonly speech_probability: boolean;
36
- readonly rms_dbfs: boolean;
37
- readonly active: boolean;
38
- set_speech_detection(
39
- enabled: boolean,
40
- going_active: number,
41
- going_inactive: number
42
- ): void;
43
-
44
- set_volume_gate(
45
- enabled: boolean,
46
- going_active: number,
47
- going_inactive: number
48
- ): void;
49
-
50
- push(samples: number, information: number): void;
51
- pop(bytes: number, bytes_length: number): number;
52
-
53
- delete(): void;
54
- }
55
-
56
- class Decoder {
57
- '$$': BindInfo;
58
-
59
- constructor();
60
-
61
- volume: number;
62
-
63
- readonly packets_seen: number;
64
- readonly packets_invalid: number;
65
- readonly packets_too_late: number;
66
- readonly packets_too_early: number;
67
- readonly packets_repeated: number;
68
- readonly packets_processed: number;
69
- readonly packets_lost: number;
70
- readonly rewinds: number;
71
- readonly cache_length: number;
72
-
73
- push(
74
- sequence_number: number,
75
- timestamp: number,
76
- is_end_of_spurt: boolean,
77
- payload: number,
78
- length: number
79
- ): number;
80
-
81
- pop(samples: number): boolean;
82
-
83
- delete(): void;
84
- isDeleted(): boolean;
85
- }
86
-
87
- function pop_many(
88
- decoders: number,
89
- activities: number,
90
- count: number,
91
- samples: number
92
- ): boolean;
93
- }
94
-
95
- declare function LoadOdinWasm(): typeof OdinWasm;
96
-
97
- export default LoadOdinWasm;