diff --git a/lib/audio/player.ts b/lib/audio/player.ts index 65f4e98..4c669b6 100644 --- a/lib/audio/player.ts +++ b/lib/audio/player.ts @@ -114,22 +114,18 @@ export class AudioPlayer { } /** - * Seek to a specific time + * Seek to a specific time and start playback */ async seek(time: number): Promise { if (!this.audioBuffer) return; - const wasPlaying = this.isPlaying; const clampedTime = Math.max(0, Math.min(time, this.audioBuffer.duration)); this.stop(); this.pauseTime = clampedTime; - if (wasPlaying) { - await this.play(clampedTime); - } else { - this.isPaused = true; - } + // Always start playback after seeking + await this.play(clampedTime); } /**