소스 검색

Fix audio push

David Catuhe 7 년 전
부모
커밋
9d25261913

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 9641 - 8977
dist/preview release/babylon.d.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/preview release/babylon.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1318 - 695
dist/preview release/babylon.max.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1318 - 695
dist/preview release/babylon.no-module.max.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/preview release/babylon.worker.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1318 - 695
dist/preview release/es6.js


+ 0 - 8
src/Audio/babylon.audioEngine.ts

@@ -72,12 +72,6 @@
          */
         public WarnedWebAudioUnsupported: boolean = false;
 
-        public unlocked: boolean = false;
-        // Event raised to notify users that the audio stack is unlocked (iOS) or unmuted (Chrome)
-        // Which means, the audio context is ready to be used as expected
-        public onAudioUnlocked: () => any;
-
-
         /**
          * Gets whether or not mp3 are supported by your browser.
          */
@@ -117,8 +111,6 @@
             return this._audioContext;
         }
 
-        private _audioContext: Nullable<AudioContext> = null;
-        private _audioContextInitialized = false;
         private _connectedAnalyser: Nullable<Analyser>;
         
         /**

+ 1 - 1
src/Particles/babylon.particleSystem.ts

@@ -223,6 +223,7 @@
                         let previousAge = particle.age;
                         particle.age += scaledUpdateSpeed;
 
+                        // Evaluate step to death
                         if (particle.age > particle.lifeTime) {
                             let diff = particle.age - previousAge;
                             let oldDiff = particle.lifeTime - previousAge;
@@ -230,7 +231,6 @@
                             scaledUpdateSpeed = (diff * scaledUpdateSpeed) / oldDiff;
 
                             particle.age = particle.lifeTime;
-
                         }
 
                         let ratio = particle.age / particle.lifeTime;