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

Method playPause

packages/alphatab/src/synth/AlphaSynth.ts:363–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

361 }
362
363 public playPause(): void {
364 if (this.state !== PlayerState.Paused || !this._isMidiLoaded) {
365 this.pause();
366 } else {
367 this.play();
368 }
369 }
370
371 public stop(): void {
372 if (!this._isMidiLoaded) {

Callers

nothing calls this directly

Calls 2

pauseMethod · 0.95
playMethod · 0.95

Tested by

no test coverage detected