From 572ac400405b24a51feb9affedec11a65e00b9fd Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Wed, 18 Feb 2026 16:32:01 +0200 Subject: [PATCH] Remove automatic playback in AudioPlayer constructor --- src/audio.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/audio.py b/src/audio.py index 0432df9..a3e284f 100644 --- a/src/audio.py +++ b/src/audio.py @@ -4,7 +4,6 @@ from typing import Callable class AudioPlayer: def __init__(self, file_path: str, loop: bool = False): self.current_stop_function: Callable[[], None] | None = None - self.play(file_path, loop) def play(self, file_path: str, loop: bool = False): """Play the specified audio file, stopping any currently playing audio.""" self.stop() # Stop any currently playing audio