This commit is contained in:
skdhg committed 2023-08-05 20:52:41 +05:45
1 parent 33426fd667
commit 1b90c1f497
30 files changed
+796 -323

No files matched your search

Vendored
+8 -3
View File
@@ -1,5 +1,5 @@
import type { ProbeResult } from './js-binding'
import type { Readable } from 'stream'
import type { ProbeResult } from './js-binding';
import type { Readable } from 'stream';
export type StreamProbeResult = {
stream: Readable;
@@ -10,6 +10,11 @@ export interface Metadata {
title: string | null;
author: string | null;
genre: string | null;
album: string | null;
year: string | null;
duration: number | null;
composer: string | null;
bpm: number | null;
}
export * from './js-binding';
@@ -17,4 +22,4 @@ export function probeStream(
stream: Readable,
probeSize?: number
): Promise<StreamProbeResult>;
export function readMetadata(result: ProbeResult): Metadata;
export function readMetadata(result: ProbeResult): Metadata;