Skip to content

Commit

Permalink
audio-manager: Remove Emitter
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyhale committed Mar 6, 2024
1 parent b10f16a commit 34aa1c1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/audio-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ export class AudioManager {
}
}

enum PlayState {
PLAYING,
STOPPED
}

/**
* Represents a playable audio node that can be used to play audio panned or without panning.
*
Expand All @@ -129,7 +124,6 @@ class PlayableNode {
private _audioNode: AudioBufferSourceNode = new AudioBufferSourceNode(_audioContext);
private _destroy: boolean = false;
private _rampTime: number = MIN_RAMP_TIME;
private _emitter: Emitter<[PlayState]> ;

/**
* Constructs a PlayableNode.
Expand All @@ -145,7 +139,6 @@ class PlayableNode {
this._audioManager = audioManager;
this._source = src;
this._gainNode.connect(_audioContext.destination);
this._emitter = new Emitter<[PlayState]>();
}

/**
Expand Down Expand Up @@ -250,12 +243,6 @@ class PlayableNode {
this._audioManager._remove(this._source);
this._gainNode.disconnect();
}
console.log(this._emitter);
this._emitter.notify(PlayState.STOPPED);
}

get emitter() {
return this._emitter;
}

/**
Expand Down

0 comments on commit 34aa1c1

Please sign in to comment.