mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 19:50:12 +01:00
attract mode volume adjustment
This commit is contained in:
@@ -35,7 +35,7 @@ class VideoPlayer:
|
||||
if self.is_finished_list[1]:
|
||||
return
|
||||
if not self.audio_played:
|
||||
audio.play_music_stream(self.audio, 'music')
|
||||
audio.play_music_stream(self.audio, 'attract_mode')
|
||||
self.audio_played = True
|
||||
audio.update_music_stream(self.audio)
|
||||
self.is_finished_list[1] = audio.get_music_time_length(self.audio) <= audio.get_music_time_played(self.audio)
|
||||
|
||||
@@ -143,7 +143,7 @@ class WarningScreen:
|
||||
self.fadein_2.update(current_ms)
|
||||
|
||||
if self.resize.attribute > 1 and not self.sound_played:
|
||||
audio.play_sound('error', 'sound')
|
||||
audio.play_sound('error', 'attract_mode')
|
||||
self.sound_played = True
|
||||
|
||||
def draw_bg(self):
|
||||
@@ -162,7 +162,7 @@ class WarningScreen:
|
||||
|
||||
def update(self, current_ms: float):
|
||||
if not self.sound_played:
|
||||
audio.play_sound('bachi_hit', 'sound')
|
||||
audio.play_sound('bachi_hit', 'attract_mode')
|
||||
self.sound_played = True
|
||||
self.fadein.start()
|
||||
self.resize.start()
|
||||
@@ -261,8 +261,8 @@ class WarningScreen:
|
||||
else:
|
||||
self.fade_out.delay = elapsed_time + 500
|
||||
if delay <= elapsed_time and not audio.is_sound_playing('bachi_swipe'):
|
||||
audio.play_sound('warning_voiceover', 'voice')
|
||||
audio.play_sound('bachi_swipe', 'sound')
|
||||
audio.play_sound('warning_voiceover', 'attract_mode')
|
||||
audio.play_sound('bachi_swipe', 'attract_mode')
|
||||
|
||||
self.is_finished = self.fade_out.is_finished
|
||||
|
||||
|
||||
Reference in New Issue
Block a user