Skip to content

Commit

Permalink
support aac
Browse files Browse the repository at this point in the history
  • Loading branch information
daslyfe committed Jun 2, 2024
1 parent ffa21dd commit 8c73ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/src/repl/files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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/*' });
Expand Down
2 changes: 1 addition & 1 deletion website/src/repl/panel/ImportSoundsButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}}
Expand Down

0 comments on commit 8c73ad0

Please sign in to comment.