Set both source and generator gains for now.

This commit is contained in:
Nolan Darilek 2022-05-24 11:17:09 -05:00
parent c6bf921a72
commit 9391238bdc

View File

@ -291,6 +291,7 @@ pub fn update_sound_properties(
}
}
if let Some(generator) = sound.generator.as_mut() {
generator.gain().set(gain).expect("Failed to set gain");
generator
.pitch_bend()
.set(pitch)