@basmilius/apple-audio-source 0.7.2 → 0.8.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.
- package/dist/chunk-Bwx8J3ba.mjs +1 -0
- package/dist/codec-parser-C_xB6wjM.mjs +3 -0
- package/dist/codec-parser-C_xB6wjM.mjs.map +1 -0
- package/dist/flac-HeRh6IRl.mjs +0 -0
- package/dist/flac-HeRh6IRl.mjs.map +1 -0
- package/dist/index.d.mts +88 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/mpg123-decoder-Dq9WfDuS.mjs +0 -0
- package/dist/mpg123-decoder-Dq9WfDuS.mjs.map +1 -0
- package/dist/node-wav-BofhZIPC.mjs +2 -0
- package/dist/node-wav-BofhZIPC.mjs.map +1 -0
- package/dist/ogg-vorbis-Di1d0ou7.mjs +0 -0
- package/dist/ogg-vorbis-Di1d0ou7.mjs.map +1 -0
- package/dist/qoa-format-CAiNgsjx.mjs +2 -0
- package/dist/qoa-format-CAiNgsjx.mjs.map +1 -0
- package/dist/utilities-DBsvONcX.mjs +4 -0
- package/dist/utilities-DBsvONcX.mjs.map +1 -0
- package/package.json +11 -10
- package/dist/const.d.ts +0 -4
- package/dist/decoder/audioDecode.d.ts +0 -8
- package/dist/decoder/codec.d.ts +0 -3
- package/dist/decoder/decode.d.ts +0 -1
- package/dist/decoder/index.d.ts +0 -3
- package/dist/decoder/pcm.d.ts +0 -8
- package/dist/ffmpeg.d.ts +0 -10
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -5274
- package/dist/mp3.d.ts +0 -12
- package/dist/ogg.d.ts +0 -12
- package/dist/pcm.d.ts +0 -10
- package/dist/sineWave.d.ts +0 -10
- package/dist/url.d.ts +0 -11
- package/dist/wav.d.ts +0 -12
package/dist/mp3.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AudioSource } from "@basmilius/apple-common";
|
|
2
|
-
export default class Mp3 implements AudioSource {
|
|
3
|
-
#private;
|
|
4
|
-
readonly duration: number;
|
|
5
|
-
constructor(buffer: Buffer, duration: number);
|
|
6
|
-
readFrames(count: number): Promise<Buffer | null>;
|
|
7
|
-
reset(): Promise<void>;
|
|
8
|
-
start(): Promise<void>;
|
|
9
|
-
stop(): Promise<void>;
|
|
10
|
-
static fromBuffer(mp3Buffer: Buffer): Promise<Mp3>;
|
|
11
|
-
static fromUrl(url: string): Promise<Mp3>;
|
|
12
|
-
}
|
package/dist/ogg.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AudioSource } from "@basmilius/apple-common";
|
|
2
|
-
export default class Ogg implements AudioSource {
|
|
3
|
-
#private;
|
|
4
|
-
readonly duration: number;
|
|
5
|
-
constructor(buffer: Buffer, duration: number);
|
|
6
|
-
readFrames(count: number): Promise<Buffer | null>;
|
|
7
|
-
reset(): Promise<void>;
|
|
8
|
-
start(): Promise<void>;
|
|
9
|
-
stop(): Promise<void>;
|
|
10
|
-
static fromBuffer(oggBuffer: Buffer): Promise<Ogg>;
|
|
11
|
-
static fromUrl(url: string): Promise<Ogg>;
|
|
12
|
-
}
|
package/dist/pcm.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AudioSource } from "@basmilius/apple-common";
|
|
2
|
-
export default class Pcm implements AudioSource {
|
|
3
|
-
#private;
|
|
4
|
-
readonly duration: number;
|
|
5
|
-
constructor(pcmBuffer: Buffer, sampleRate?: number);
|
|
6
|
-
readFrames(count: number): Promise<Buffer | null>;
|
|
7
|
-
reset(): Promise<void>;
|
|
8
|
-
start(): Promise<void>;
|
|
9
|
-
stop(): Promise<void>;
|
|
10
|
-
}
|
package/dist/sineWave.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AudioSource } from "@basmilius/apple-common";
|
|
2
|
-
export default class SineWave implements AudioSource {
|
|
3
|
-
#private;
|
|
4
|
-
readonly duration: number;
|
|
5
|
-
constructor(durationSeconds: number, frequency?: number, sampleRate?: number, channels?: number, bytesPerChannel?: number);
|
|
6
|
-
readFrames(count: number): Promise<Buffer | null>;
|
|
7
|
-
reset(): Promise<void>;
|
|
8
|
-
start(): Promise<void>;
|
|
9
|
-
stop(): Promise<void>;
|
|
10
|
-
}
|
package/dist/url.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AudioSource } from "@basmilius/apple-common";
|
|
2
|
-
export default class Url implements AudioSource {
|
|
3
|
-
#private;
|
|
4
|
-
readonly duration: number;
|
|
5
|
-
constructor(buffer: Buffer, duration: number);
|
|
6
|
-
readFrames(count: number): Promise<Buffer | null>;
|
|
7
|
-
reset(): Promise<void>;
|
|
8
|
-
start(): Promise<void>;
|
|
9
|
-
stop(): Promise<void>;
|
|
10
|
-
static fromUrl(url: string): Promise<Url>;
|
|
11
|
-
}
|
package/dist/wav.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AudioSource } from "@basmilius/apple-common";
|
|
2
|
-
export default class Wav implements AudioSource {
|
|
3
|
-
#private;
|
|
4
|
-
readonly duration: number;
|
|
5
|
-
constructor(buffer: Buffer, duration: number);
|
|
6
|
-
readFrames(count: number): Promise<Buffer | null>;
|
|
7
|
-
reset(): Promise<void>;
|
|
8
|
-
start(): Promise<void>;
|
|
9
|
-
stop(): Promise<void>;
|
|
10
|
-
static fromBuffer(wavBuffer: Buffer): Promise<Wav>;
|
|
11
|
-
static fromUrl(url: string): Promise<Wav>;
|
|
12
|
-
}
|