From 8c73ad088a6020603c955e669fe362a3aa77e621 Mon Sep 17 00:00:00 2001 From: "Jade (Rose) Rowland" Date: Sun, 2 Jun 2024 12:32:54 -0400 Subject: [PATCH] support aac --- website/src/repl/files.mjs | 2 +- website/src/repl/panel/ImportSoundsButton.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/repl/files.mjs b/website/src/repl/files.mjs index 3e3db94d8..d2b95f6ad 100644 --- a/website/src/repl/files.mjs +++ b/website/src/repl/files.mjs @@ -76,7 +76,7 @@ export const walkFileTree = (node, fn) => { }; export const isAudioFile = (filename) => - ['wav', 'mp3', 'flac', 'ogg', 'm4a'].includes(filename.split('.').slice(-1)[0]); + ['wav', 'mp3', 'flac', 'ogg', 'm4a', 'aac'].includes(filename.split('.').slice(-1)[0]); function uint8ArrayToDataURL(uint8Array) { const blob = new Blob([uint8Array], { type: 'audio/*' }); diff --git a/website/src/repl/panel/ImportSoundsButton.jsx b/website/src/repl/panel/ImportSoundsButton.jsx index 7a97b9e09..da45705f4 100644 --- a/website/src/repl/panel/ImportSoundsButton.jsx +++ b/website/src/repl/panel/ImportSoundsButton.jsx @@ -33,7 +33,7 @@ export default function ImportSoundsButton({ onComplete }) { directory="" webkitdirectory="" multiple - accept="audio/*, .wav, .mp3, .m4a, .flac" + accept="audio/*, .wav, .mp3, .m4a, .flac, .aac, .ogg" onChange={() => { onChange(); }}