nezuhub's picture
download
raw
940 Bytes
/*!
* Copyright (c) 2026-present, Vanilagy and contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
export type WorkerCommand = {
type: 'init';
data: {
numberOfChannels: number;
sampleRate: number;
bitrate: number;
};
} | {
type: 'encode';
data: {
audioData: ArrayBuffer;
numberOfFrames: number;
};
} | {
type: 'flush';
};
export type WorkerResponseData = {
type: 'init';
success: boolean;
} | {
type: 'encode';
encodedData: ArrayBuffer;
} | {
type: 'flush';
flushedData: ArrayBuffer;
};
export type WorkerResponse = {
id: number;
} & ({
success: true;
data: WorkerResponseData;
} | {
success: false;
error: unknown;
});
//# sourceMappingURL=shared.d.ts.map

Xet Storage Details

Size:
940 Bytes
·
Xet hash:
ee0d7c1c6a7b5e753c2dcb278facdfe706b1bc0776b00d9b7b72af120d0c9510

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.