mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
fix(music): Fix the audio volume from music stream not detecting the desired volume
Apparently, Yonokid used default value for a parameter in play_music_stream in file `libs/audio.py` and forgot to pass the supposed argument when using the function. This commit will completely kill that default value and pass the correct parameter's value (which is `music`). Please don't use default parameter anymore, Yono.
This commit is contained in:
@@ -285,7 +285,7 @@ class SongSelectScreen:
|
||||
song.box.get_scores()
|
||||
if song.tja.metadata.wave.exists() and song.tja.metadata.wave.is_file():
|
||||
self.demo_song = audio.load_music_stream(song.tja.metadata.wave, 'demo_song')
|
||||
audio.play_music_stream(self.demo_song)
|
||||
audio.play_music_stream(self.demo_song, 'music')
|
||||
audio.seek_music_stream(self.demo_song, song.tja.metadata.demostart)
|
||||
audio.stop_sound('bgm')
|
||||
if song.box.is_open:
|
||||
|
||||
Reference in New Issue
Block a user