From 9391238bdc8b137c76e8407fe52c17be0198d3f5 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 24 May 2022 11:17:09 -0500 Subject: [PATCH] Set both source and generator gains for now. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 27b98e4..ad89c79 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)