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

Method stop

src/media/player.rs:94–98  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

92 }
93
94 pub(crate) fn stop(&self) {
95 if let Some(s) = self.sink.borrow_mut().take() {
96 s.stop();
97 }
98 }
99
100 pub(crate) fn change_volume(&self, volume: f32) {
101 let mut sink = self.sink.borrow_mut();

Callers 5

stop_bgmMethod · 0.45
stop_allMethod · 0.45
play_loopMethod · 0.45
play_voiceMethod · 0.45
execute_stop_videoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected