Skip to content

Commit f43684a

Browse files
Smaller code
1 parent 3bf9d89 commit f43684a

File tree

1 file changed

+0
-6
lines changed
  • internal_filesystem/apps/com.micropythonos.musicplayer/assets

1 file changed

+0
-6
lines changed

internal_filesystem/apps/com.micropythonos.musicplayer/assets/audio_player.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ def set_volume(cls, volume: int):
5959
"""Set playback volume 0-100 (100 = full scale)."""
6060
volume = max(0, min(100, volume)) # clamp
6161
cls._volume = volume
62-
# If playback is already running we could instantly re-scale the
63-
# current buffer, but the simple way (scale on each write) is
64-
# enough and works even if playback starts later.
6562

6663
@classmethod
6764
def get_volume(cls) -> int:
@@ -73,9 +70,6 @@ def stop_playing():
7370
print("stop_playing()")
7471
AudioPlayer._keep_running = False
7572

76-
# ------------------------------------------------------------------
77-
# Playback entry point (called from a thread)
78-
# ------------------------------------------------------------------
7973
@classmethod
8074
def play_wav(cls, filename):
8175
AudioPlayer._keep_running = True

0 commit comments

Comments
 (0)