From c7c923c28b39b1381f5780d323cf43b0b2d360b7 Mon Sep 17 00:00:00 2001 From: Luca Visentin Date: Sun, 7 Jan 2024 16:29:38 +0100 Subject: [PATCH] Use mime type `audio/wav` for .wav files (#620) --- core.d.ts | 2 +- core.js | 2 +- supported.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core.d.ts b/core.d.ts index b72eedb5..3e8375df 100644 --- a/core.d.ts +++ b/core.d.ts @@ -192,7 +192,7 @@ export type MimeType = | 'video/webm' | 'video/quicktime' | 'video/vnd.avi' - | 'audio/vnd.wave' + | 'audio/wav' | 'audio/qcelp' | 'audio/x-ms-asf' | 'video/x-ms-asf' diff --git a/core.js b/core.js index 6816f80f..63d68f05 100644 --- a/core.js +++ b/core.js @@ -835,7 +835,7 @@ export class FileTypeParser { if (this.check([0x57, 0x41, 0x56, 0x45], {offset: 8})) { return { ext: 'wav', - mime: 'audio/vnd.wave', + mime: 'audio/wav', }; } diff --git a/supported.js b/supported.js index e3344c4b..e9337823 100644 --- a/supported.js +++ b/supported.js @@ -189,7 +189,7 @@ export const mimeTypes = [ 'video/webm', 'video/quicktime', 'video/vnd.avi', - 'audio/vnd.wave', + 'audio/wav', 'audio/qcelp', 'audio/x-ms-asf', 'video/x-ms-asf',