MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / change_volume

Method change_volume

src/media/player.rs:100–105  ·  view source on GitHub ↗
(&self, volume: f32)

Source from the content-addressed store, hash-verified

98 }
99 }
100
101 pub(crate) fn change_volume(&self, volume: f32) {
102 let mut sink = self.sink.borrow_mut();
103 if let Some(sink) = sink.as_mut() {
104 sink.set_volume(volume);
105 }
106 }
107
108 pub(crate) fn play_voice(&self, path: &str, volume: f32) -> Result<(), MediaError> {

Callers 2

change_bgm_volumeMethod · 0.80
change_voice_volumeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected