From f43684a2db81dd0b4dd7261d69b72e32d7f23a06 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 28 Oct 2025 17:39:31 +0100 Subject: [PATCH] Smaller code --- .../com.micropythonos.musicplayer/assets/audio_player.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal_filesystem/apps/com.micropythonos.musicplayer/assets/audio_player.py b/internal_filesystem/apps/com.micropythonos.musicplayer/assets/audio_player.py index 2a377d40..728fd0d2 100644 --- a/internal_filesystem/apps/com.micropythonos.musicplayer/assets/audio_player.py +++ b/internal_filesystem/apps/com.micropythonos.musicplayer/assets/audio_player.py @@ -59,9 +59,6 @@ class AudioPlayer: """Set playback volume 0-100 (100 = full scale).""" volume = max(0, min(100, volume)) # clamp cls._volume = volume - # If playback is already running we could instantly re-scale the - # current buffer, but the simple way (scale on each write) is - # enough and works even if playback starts later. @classmethod def get_volume(cls) -> int: @@ -73,9 +70,6 @@ class AudioPlayer: print("stop_playing()") AudioPlayer._keep_running = False - # ------------------------------------------------------------------ - # Playback entry point (called from a thread) - # ------------------------------------------------------------------ @classmethod def play_wav(cls, filename): AudioPlayer._keep_running = True