diff --git a/app/src/chart/ChartManager.ts b/app/src/chart/ChartManager.ts index 6bfe1e88..498f2eb3 100644 --- a/app/src/chart/ChartManager.ts +++ b/app/src/chart/ChartManager.ts @@ -1022,6 +1022,7 @@ export class ChartManager { } playPause() { + this.setNoteIndex() if (this.chartAudio.isPlaying()) this.chartAudio.pause() else this.chartAudio.play() } diff --git a/app/src/chart/audio/ChartAudio.ts b/app/src/chart/audio/ChartAudio.ts index d450202d..0b9eb8cd 100644 --- a/app/src/chart/audio/ChartAudio.ts +++ b/app/src/chart/audio/ChartAudio.ts @@ -586,8 +586,8 @@ export class ChartAudio { seek(): number seek(playbackTime: number): void seek(playbackTime?: number) { - if (this._destroyed) return - if (!this._source) return + if (this._destroyed) return 0 + if (!this._source) return 0 if (playbackTime === undefined) { if (!this._isPlaying) return this._playbackTime return (