Skip to content

Commit

Permalink
feat: change volume
Browse files Browse the repository at this point in the history
ch im sae 0, hit sound up
  • Loading branch information
boulce committed Jun 10, 2024
1 parent 737a0d8 commit df71cc7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions game/src/game/game_player/effect_sound_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ impl EffectSoundPlayer {
};
if play_sound {
let new_handle = audio_manager
.play(kung_sound_data.clone())
.play(
kung_sound_data
.clone()
.with_settings(StaticSoundSettings::default().volume(5.0)),
)
.expect("Failed to play kung sound");
self.effect_sound_play_handles.left_stick = Some(new_handle);
}
Expand All @@ -141,7 +145,11 @@ impl EffectSoundPlayer {

if play_sound {
let new_handle = audio_manager
.play(deok_sound_data.clone())
.play(
deok_sound_data
.clone()
.with_settings(StaticSoundSettings::default().volume(5.0)),
)
.expect("Failed to play deok sound");
self.effect_sound_play_handles.right_stick = Some(new_handle);
}
Expand All @@ -156,7 +164,7 @@ impl EffectSoundPlayer {
.play(
combo_sound
.clone()
.with_settings(StaticSoundSettings::default().volume(20.0)),
.with_settings(StaticSoundSettings::default().volume(0.0)),
)
.expect("Failed to play combo sound");
self.combo_sound_played = true;
Expand Down

0 comments on commit df71cc7

Please sign in to comment.