| /*! | |
| * 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 PacketInfo = { | |
| encodedData: ArrayBuffer; | |
| samples: number; | |
| }; | |
| export type WorkerCommand = { | |
| type: 'init'; | |
| data: { | |
| numberOfChannels: number; | |
| sampleRate: number; | |
| bitsPerSample: 16 | 24; | |
| }; | |
| } | { | |
| type: 'encode'; | |
| data: { | |
| ctx: number; | |
| audioData: ArrayBuffer; | |
| numSamples: number; | |
| }; | |
| } | { | |
| type: 'flush'; | |
| data: { | |
| ctx: number; | |
| }; | |
| }; | |
| export type WorkerResponseData = { | |
| type: 'init'; | |
| ctx: number; | |
| header: ArrayBuffer; | |
| } | { | |
| type: 'encode'; | |
| packets: PacketInfo[]; | |
| } | { | |
| type: 'flush'; | |
| packets: PacketInfo[]; | |
| }; | |
| export type WorkerResponse = { | |
| id: number; | |
| } & ({ | |
| success: true; | |
| data: WorkerResponseData; | |
| } | { | |
| success: false; | |
| error: unknown; | |
| }); | |
| //# sourceMappingURL=shared.d.ts.map |
Xet Storage Details
- Size:
- 1.1 kB
- Xet hash:
- 93cc90f0f7050d4f23dc1b2e6dab946906bf1fac7c831443e4e5b24b97d67a75
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.