Skip to content

Commit

Permalink
[BREAKING] Remove deprecated AudioSourceComponent component (#6407)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jun 6, 2024
1 parent 9bc3ec0 commit f8fbf73
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 545 deletions.
2 changes: 0 additions & 2 deletions src/framework/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { script } from './script.js';
import { AnimationComponentSystem } from './components/animation/system.js';
import { AnimComponentSystem } from './components/anim/system.js';
import { AudioListenerComponentSystem } from './components/audio-listener/system.js';
import { AudioSourceComponentSystem } from './components/audio-source/system.js';
import { ButtonComponentSystem } from './components/button/system.js';
import { CollisionComponentSystem } from './components/collision/system.js';
import { ElementComponentSystem } from './components/element/system.js';
Expand Down Expand Up @@ -171,7 +170,6 @@ class Application extends AppBase {
CameraComponentSystem,
LightComponentSystem,
script.legacy ? ScriptLegacyComponentSystem : ScriptComponentSystem,
AudioSourceComponentSystem,
SoundComponentSystem,
AudioListenerComponentSystem,
ParticleSystemComponentSystem,
Expand Down
2 changes: 1 addition & 1 deletion src/framework/components/audio-listener/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AudioListenerComponentSystem extends ComponentSystem {
this.schema = _schema;

this.manager = app.soundManager;
Debug.assert(this.manager, "AudioSourceComponentSystem cannot be created witout sound manager");
Debug.assert(this.manager, "AudioListenerComponentSystem cannot be created witout sound manager");

this.current = null;

Expand Down
365 changes: 0 additions & 365 deletions src/framework/components/audio-source/component.js

This file was deleted.

Loading

0 comments on commit f8fbf73

Please sign in to comment.