aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/breakout/client.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/breakout/client.rs b/examples/breakout/client.rs
index 88aeedc..f4893b3 100644
--- a/examples/breakout/client.rs
+++ b/examples/breakout/client.rs
@@ -1,6 +1,7 @@
use std::collections::HashMap;
use bevy::{
+ audio::Volume,
prelude::{
default, AssetServer, AudioBundle, BuildChildren, Bundle, Button, ButtonBundle,
Camera2dBundle, Changed, Color, Commands, Component, DespawnRecursiveExt, Entity,
@@ -333,7 +334,7 @@ pub(crate) fn play_collision_sound(
commands.spawn(AudioBundle {
source: sound.0.clone(),
// auto-despawn the entity when playback finishes
- settings: PlaybackSettings::DESPAWN,
+ settings: PlaybackSettings::DESPAWN.with_volume(Volume::new_relative(0.2)),
});
}
}