mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
Audio tab in media gallery
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user