audio volumes are now changable

This commit is contained in:
Anthony Samms
2025-10-15 15:19:39 -04:00
parent ed12c5a78b
commit 5de43d048f
10 changed files with 90 additions and 74 deletions

View File

@@ -94,7 +94,7 @@ class TitleScreen:
self.scene_manager(current_time)
if is_l_don_pressed() or is_r_don_pressed():
self.fade_out.start()
audio.play_sound('don')
audio.play_sound('don', 'sound')
def draw(self):
if self.state == State.OP_VIDEO and self.op_video is not None:
@@ -133,7 +133,7 @@ class WarningScreen:
self.fadein_2.update(current_ms)
if self.resize.attribute > 1 and not self.sound_played:
audio.play_sound('error')
audio.play_sound('error', 'sound')
self.sound_played = True
def draw_bg(self):
@@ -151,7 +151,7 @@ class WarningScreen:
def update(self, current_ms: float):
if not self.sound_played:
audio.play_sound('bachi_hit')
audio.play_sound('bachi_hit', 'sound')
self.sound_played = True
self.fadein.start()
self.resize.start()
@@ -248,8 +248,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')
audio.play_sound('bachi_swipe')
audio.play_sound('warning_voiceover', 'voice')
audio.play_sound('bachi_swipe', 'sound')
self.is_finished = self.fade_out.is_finished