Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf43684a

Browse files
Smaller code
1 parent3bf9d89 commitf43684a

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
defget_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
defplay_wav(cls,filename):
8175
AudioPlayer._keep_running=True

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp