浏览代码

Merge pull request #1649 from MackeyK24/master

Master
David Catuhe 8 年之前
父节点
当前提交
7ff79d4805
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Audio/babylon.sound.ts

+ 4 - 0
src/Audio/babylon.sound.ts

@@ -227,6 +227,10 @@ module BABYLON {
             }
         }
 
+        public isReady(): boolean {
+            return this._isReadyToPlay;
+        }
+
         private _soundLoaded(audioData: ArrayBuffer) {
             this._isLoaded = true;
             Engine.audioEngine.audioContext.decodeAudioData(audioData, (buffer) => {