| /*! | |
| * 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/. | |
| */ | |
| /** | |
| * Registers the FLAC encoder, which Mediabunny will then use automatically when applicable. Make sure to call this | |
| * function before starting any encoding task. The FLAC encoder will automatically determine the output bit depth | |
| * (16 or 24) based on the sample format of incoming `AudioSample` instances. | |
| * | |
| * Preferably, wrap the call in a condition to avoid overriding any native FLAC encoder: | |
| * | |
| * ```ts | |
| * import { canEncodeAudio } from 'mediabunny'; | |
| * import { registerFlacEncoder } from '@mediabunny/flac-encoder'; | |
| * | |
| * if (!(await canEncodeAudio('flac'))) { | |
| * registerFlacEncoder(); | |
| * } | |
| * ``` | |
| * | |
| * @group \@mediabunny/flac-encoder | |
| * @public | |
| */ | |
| export declare const registerFlacEncoder: () => void; | |
| export declare const assertNever: (x: never) => never; | |
| //# sourceMappingURL=encoder.d.ts.map |
Xet Storage Details
- Size:
- 1.09 kB
- Xet hash:
- bacfeefc55b7654b8c19f3e742d112a64560c260a4ce4d858d8156eba587dc39
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.