mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
audio volumes are now changable
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user