瀏覽代碼

Merge pull request #9229 from sebavan/master

m4a Support
sebavan 4 年之前
父節點
當前提交
4b10a1ef61
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Audio/sound.ts

+ 1 - 0
src/Audio/sound.ts

@@ -243,6 +243,7 @@ export class Sound {
                                     (url.indexOf(".mp3", url.length - 4) !== -1 && Engine.audioEngine.isMP3supported) ||
                                     (url.indexOf(".ogg", url.length - 4) !== -1 && Engine.audioEngine.isOGGsupported) ||
                                     url.indexOf(".wav", url.length - 4) !== -1 ||
+                                    url.indexOf(".m4a", url.length - 4) !== -1 ||
                                     url.indexOf("blob:") !== -1;
                                 if (codecSupportedFound) {
                                     // Loading sound using XHR2