Turn audio gain down to 20%
This commit is contained in:
parent
20cb9f88fa
commit
c76da94034
1 changed files with 4 additions and 1 deletions
|
@ -128,6 +128,9 @@ impl SoundSystem {
|
|||
pub fn play_sound(&mut self, samples: SoundEffectSamples) {
|
||||
self.mixer_handle
|
||||
.control::<oddio::Mixer<_>, _>()
|
||||
.play(oddio::MonoToStereo::new(oddio::FramesSignal::from(samples)));
|
||||
.play(oddio::MonoToStereo::new(oddio::Gain::new(
|
||||
oddio::FramesSignal::from(samples),
|
||||
0.20,
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue