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

Method execute_voice_volume

src/executors/executor.rs:257–267  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

255 pub(crate) fn execute_voice_volume(&mut self) -> Result<(), EngineError> {
256 if let Some(window) = self.weak.upgrade() {
257 let volume = window.get_main_volume() / 100.0;
258 let voice_volume = window.get_voice_volume() / 100.0;
259 self.media_player
260 .borrow()
261 .change_voice_volume(volume * voice_volume);
262 }
263
264 Ok(())
265 }
266
267 pub(crate) fn execute_save_config(&self) -> Result<(), EngineError> {
268 let weak = self.get_weak();
269 save_user_config(weak)
270 }

Callers 1

uiFunction · 0.80

Calls 1

change_voice_volumeMethod · 0.80

Tested by

no test coverage detected