Add @mediabunny/flac-encoder extension, clean up some other code, fix incorrect top-level tsconfig

This commit is contained in:
Vanilagy
2026-03-04 21:21:52 +01:00
parent e18da824ce
commit a15283eaa3
35 changed files with 1713 additions and 48 deletions
+8 -17
View File
@@ -25,11 +25,12 @@ export type WorkerCommand = {
data: {
ctx: number;
};
} | {
type: 'close';
data: {
ctx: number;
};
};
export type PacketInfo = {
encodedData: ArrayBuffer;
pts: number;
duration: number;
};
export type WorkerResponseData = {
@@ -39,20 +40,10 @@ export type WorkerResponseData = {
extradata: ArrayBuffer;
} | {
type: 'encode';
packets: Array<{
encodedData: ArrayBuffer;
pts: number;
duration: number;
}>;
packets: PacketInfo[];
} | {
type: 'flush';
packets: Array<{
encodedData: ArrayBuffer;
pts: number;
duration: number;
}>;
} | {
type: 'close';
packets: PacketInfo[];
};
export type WorkerResponse = {