@ikonai/sdk-libopus 1.8.0 → 1.10.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.
@@ -23,9 +23,6 @@ export declare class OpusDecoder {
23
23
  * Returns views into pre-allocated buffers. The channelData arrays are reused
24
24
  * on each call, so callers MUST copy the data if it needs to persist beyond
25
25
  * the next decode call.
26
- *
27
- * @param opusData - The Opus-encoded audio frame
28
- * @returns Decoded audio with channel data and sample count
29
26
  */
30
27
  decodeFrame(opusData: Uint8Array): DecodedAudio;
31
28
  /**
@@ -38,13 +35,7 @@ export declare class OpusDecoder {
38
35
  * Call this when there's a discontinuity in the audio stream.
39
36
  */
40
37
  reset(): void;
41
- /**
42
- * Get the number of channels this decoder was created with.
43
- */
44
38
  getChannels(): number;
45
- /**
46
- * Get the sample rate this decoder was created with.
47
- */
48
39
  getSampleRate(): number;
49
40
  /**
50
41
  * Release all resources.
@@ -27,7 +27,6 @@ export declare class OpusEncoder {
27
27
  * the next encode call.
28
28
  *
29
29
  * @param pcmFloat - Interleaved float PCM samples (-1.0 to 1.0)
30
- * @returns Opus-encoded audio data (view into internal buffer)
31
30
  */
32
31
  encode(pcmFloat: Float32Array): Uint8Array;
33
32
  /**
@@ -47,16 +46,9 @@ export declare class OpusEncoder {
47
46
  setBitrate(bitrate: number): void;
48
47
  /**
49
48
  * Set the encoder complexity (0-10, higher = better quality but more CPU).
50
- * @param complexity - Complexity value (0-10)
51
49
  */
52
50
  setComplexity(complexity: number): void;
53
- /**
54
- * Get the number of channels this encoder was created with.
55
- */
56
51
  getChannels(): number;
57
- /**
58
- * Get the sample rate this encoder was created with.
59
- */
60
52
  getSampleRate(): number;
61
53
  /**
62
54
  * Release all resources.
@@ -4,7 +4,4 @@ import { OpusModule } from './types';
4
4
  * The module is loaded lazily on first call and cached for subsequent calls.
5
5
  */
6
6
  export declare function getOpusModule(): Promise<OpusModule>;
7
- /**
8
- * Check if the OpusModule has been loaded.
9
- */
10
7
  export declare function isModuleLoaded(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk-libopus",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",