Explorar o código

Merge pull request #1649 from MackeyK24/master

Master
David Catuhe %!s(int64=9) %!d(string=hai) anos
pai
achega
7ff79d4805
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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) => {