Browse and listen to thousands of radio stations across the globe right from your terminal ๐ŸŒŽ ๐Ÿ“ป ๐ŸŽตโœจ
radio rust tokio web-radio command-line-tool tui

app: render_frame(): render raw volume

+7 -2
+7 -2
src/app.rs
··· 58 } 59 } 60 61 /// Is volume muted? 62 pub const fn is_muted(&self) -> bool { 63 self.is_muted ··· 234 render_line( 235 "Volume ", 236 &if state.volume.is_muted() { 237 - format!("{} muted", state.volume.volume()) 238 } else { 239 - format!("{}", state.volume.volume()) 240 }, 241 Rect { 242 x: size.x,
··· 58 } 59 } 60 61 + /// Get the raw volume. 62 + pub const fn raw_volume(&self) -> f32 { 63 + self.volume 64 + } 65 + 66 /// Is volume muted? 67 pub const fn is_muted(&self) -> bool { 68 self.is_muted ··· 239 render_line( 240 "Volume ", 241 &if state.volume.is_muted() { 242 + format!("{} muted", state.volume.raw_volume()) 243 } else { 244 + format!("{}", state.volume.raw_volume()) 245 }, 246 Rect { 247 x: size.x,