MCPcopy Create free account
hub / github.com/bajrangCoder/setu / apply_volume

Method apply_volume

src/components/audio_player.rs:240–246  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

238 if let Some(ref backend) = self.backend
239 && let Ok(backend) = backend.lock()
240 {
241 backend.player.set_volume(self.effective_volume());
242 }
243 }
244
245 fn seek_by(&mut self, delta_secs: f32, cx: &mut Context<Self>) {
246 let target = if delta_secs.is_sign_negative() {
247 self.current_position
248 .saturating_sub(Duration::from_secs_f32(delta_secs.abs()))
249 } else {

Callers 3

toggle_muteMethod · 0.80
volume_upMethod · 0.80
volume_downMethod · 0.80

Calls 1

effective_volumeMethod · 0.80

Tested by

no test coverage detected