attract mode volume adjustment

This commit is contained in:
Anthony Samms
2025-11-01 13:18:49 -04:00
parent 4656845551
commit c917095315
2 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ class VideoPlayer:
if self.is_finished_list[1]: if self.is_finished_list[1]:
return return
if not self.audio_played: if not self.audio_played:
audio.play_music_stream(self.audio, 'music') audio.play_music_stream(self.audio, 'attract_mode')
self.audio_played = True self.audio_played = True
audio.update_music_stream(self.audio) 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) self.is_finished_list[1] = audio.get_music_time_length(self.audio) <= audio.get_music_time_played(self.audio)

View File

@@ -143,7 +143,7 @@ class WarningScreen:
self.fadein_2.update(current_ms) self.fadein_2.update(current_ms)
if self.resize.attribute > 1 and not self.sound_played: 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 self.sound_played = True
def draw_bg(self): def draw_bg(self):
@@ -162,7 +162,7 @@ class WarningScreen:
def update(self, current_ms: float): def update(self, current_ms: float):
if not self.sound_played: if not self.sound_played:
audio.play_sound('bachi_hit', 'sound') audio.play_sound('bachi_hit', 'attract_mode')
self.sound_played = True self.sound_played = True
self.fadein.start() self.fadein.start()
self.resize.start() self.resize.start()
@@ -261,8 +261,8 @@ class WarningScreen:
else: else:
self.fade_out.delay = elapsed_time + 500 self.fade_out.delay = elapsed_time + 500
if delay <= elapsed_time and not audio.is_sound_playing('bachi_swipe'): if delay <= elapsed_time and not audio.is_sound_playing('bachi_swipe'):
audio.play_sound('warning_voiceover', 'voice') audio.play_sound('warning_voiceover', 'attract_mode')
audio.play_sound('bachi_swipe', 'sound') audio.play_sound('bachi_swipe', 'attract_mode')
self.is_finished = self.fade_out.is_finished self.is_finished = self.fade_out.is_finished