Remove automatic playback in AudioPlayer constructor

This commit is contained in:
2026-02-18 16:32:01 +02:00
parent 73afda51c6
commit 572ac40040

View File

@@ -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