Audio tab in media gallery

This commit is contained in:
Fedor Indutny
2025-11-18 14:40:01 -08:00
committed by GitHub
parent 3592bbf9f2
commit 5745cc0083
27 changed files with 946 additions and 392 deletions

View File

@@ -39,7 +39,7 @@ const computeQueue = new PQueue({
concurrency: MAX_PARALLEL_COMPUTE,
});
async function getAudioDuration(buffer: ArrayBuffer): Promise<number> {
export async function getAudioDuration(buffer: ArrayBuffer): Promise<number> {
const blob = new Blob([buffer]);
const blobURL = URL.createObjectURL(blob);
const audio = new Audio();