Merge pull request #1899 from paulkaplan/fix-sound-formats

Allow more mime types to be processed.
This commit is contained in:
Paul Kaplan authored and GitHub committed 2018-04-27 15:30:25 -04:00
commit 44bd1a307c
1 file changed
+6 -2
+6 -2
View File
@@ -144,11 +144,15 @@ const costumeUpload = function (fileData, fileType, costumeName, storage, handle
const soundUpload = function (fileData, fileType, soundName, storage, handleSound) {
let soundFormat;
switch (fileType) {
case 'audio/mp3': {
case 'audio/mp3':
case 'audio/mpeg': {
soundFormat = storage.DataFormat.MP3;
break;
}
case 'audio/wav': { // TODO support audio/x-wav? Do we see this in the wild?
case 'audio/wav':
case 'audio/wave':
case 'audio/x-wav':
case 'audio/x-pn-wav': {
soundFormat = storage.DataFormat.WAV;
break;
}