MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / unbindAudio

Method unbindAudio

packages/playground/src/components/Waveform.ts:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }
94
95 private unbindAudio(): void {
96 if (!this.audioElement) {
97 return;
98 }
99 this.audioElement.removeEventListener('timeupdate', this.updateCursor);
100 this.audioElement.removeEventListener('durationchange', this.updateCursor);
101 this.audioElement.removeEventListener('seeked', this.updateCursor);
102 this.audioElement = null;
103 }
104
105 private hide(): void {
106 this.root.classList.add('hidden');

Callers 3

bindAudioMethod · 0.95
hideMethod · 0.95
disposeMethod · 0.95

Calls 1

removeEventListenerMethod · 0.65

Tested by

no test coverage detected