@@ -290,7 +290,7 @@ Object.assign(pc, function () {
290290
291291 this . graphicsDevice = new pc . GraphicsDevice ( canvas , options . graphicsDeviceOptions ) ;
292292 this . stats = new pc . ApplicationStats ( this . graphicsDevice ) ;
293- this . _audioManager = new pc . SoundManager ( options ) ;
293+ this . _soundManager = new pc . SoundManager ( options ) ;
294294 this . loader = new pc . ResourceLoader ( this ) ;
295295
296296 // stores all entities that have been created
@@ -582,7 +582,7 @@ Object.assign(pc, function () {
582582 this . loader . addHandler ( "texture" , new pc . TextureHandler ( this . graphicsDevice , this . assets , this . loader ) ) ;
583583 this . loader . addHandler ( "text" , new pc . TextHandler ( ) ) ;
584584 this . loader . addHandler ( "json" , new pc . JsonHandler ( ) ) ;
585- this . loader . addHandler ( "audio" , new pc . AudioHandler ( this . _audioManager ) ) ;
585+ this . loader . addHandler ( "audio" , new pc . AudioHandler ( this . _soundManager ) ) ;
586586 this . loader . addHandler ( "script" , new pc . ScriptHandler ( this ) ) ;
587587 this . loader . addHandler ( "scene" , new pc . SceneHandler ( this ) ) ;
588588 this . loader . addHandler ( "cubemap" , new pc . CubemapHandler ( this . graphicsDevice , this . assets , this . loader ) ) ;
@@ -611,9 +611,9 @@ Object.assign(pc, function () {
611611 } else {
612612 this . systems . add ( new pc . ScriptComponentSystem ( this ) ) ;
613613 }
614- this . systems . add ( new pc . AudioSourceComponentSystem ( this , this . _audioManager ) ) ;
615- this . systems . add ( new pc . SoundComponentSystem ( this , this . _audioManager ) ) ;
616- this . systems . add ( new pc . AudioListenerComponentSystem ( this , this . _audioManager ) ) ;
614+ this . systems . add ( new pc . AudioSourceComponentSystem ( this , this . _soundManager ) ) ;
615+ this . systems . add ( new pc . SoundComponentSystem ( this , this . _soundManager ) ) ;
616+ this . systems . add ( new pc . AudioListenerComponentSystem ( this , this . _soundManager ) ) ;
617617 this . systems . add ( new pc . ParticleSystemComponentSystem ( this ) ) ;
618618 this . systems . add ( new pc . ScreenComponentSystem ( this ) ) ;
619619 this . systems . add ( new pc . ElementComponentSystem ( this ) ) ;
@@ -1440,9 +1440,9 @@ Object.assign(pc, function () {
14401440 */
14411441 onVisibilityChange : function ( ) {
14421442 if ( this . isHidden ( ) ) {
1443- this . _audioManager . suspend ( ) ;
1443+ this . _soundManager . suspend ( ) ;
14441444 } else {
1445- this . _audioManager . resume ( ) ;
1445+ this . _soundManager . resume ( ) ;
14461446 }
14471447 } ,
14481448
@@ -1841,9 +1841,9 @@ Object.assign(pc, function () {
18411841
18421842 this . off ( ) ; // remove all events
18431843
1844- if ( this . _audioManager ) {
1845- this . _audioManager . destroy ( ) ;
1846- this . _audioManager = null ;
1844+ if ( this . _soundManager ) {
1845+ this . _soundManager . destroy ( ) ;
1846+ this . _soundManager = null ;
18471847 }
18481848
18491849 pc . http = new pc . Http ( ) ;
0 commit comments