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

Method effective_volume

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

Source from the content-addressed store, hash-verified

94 true
95 }
96
97 fn effective_volume(&self) -> f32 {
98 if self.muted { 0.0 } else { self.volume }
99 }
100
101 fn sync_playback_state(&mut self) {
102 if self.playback_state != PlaybackState::Playing {
103 return;
104 }
105

Callers 2

ensure_backendMethod · 0.80
apply_volumeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected