tangled
alpha
login
or
join now
tsiry-sandratraina.com
/
tunein-cli
6
fork
atom
Browse and listen to thousands of radio stations across the globe right from your terminal ๐ ๐ป ๐ตโจ
radio
rust
tokio
web-radio
command-line-tool
tui
6
fork
atom
overview
issues
pulls
pipelines
app: render_frame(): render raw volume
ishbosamiya
7 months ago
36488c51
ecffbe62
+7
-2
1 changed file
expand all
collapse all
unified
split
src
app.rs
+7
-2
src/app.rs
···
58
58
}
59
59
}
60
60
61
61
+
/// Get the raw volume.
62
62
+
pub const fn raw_volume(&self) -> f32 {
63
63
+
self.volume
64
64
+
}
65
65
+
61
66
/// Is volume muted?
62
67
pub const fn is_muted(&self) -> bool {
63
68
self.is_muted
···
234
239
render_line(
235
240
"Volume ",
236
241
&if state.volume.is_muted() {
237
237
-
format!("{} muted", state.volume.volume())
242
242
+
format!("{} muted", state.volume.raw_volume())
238
243
} else {
239
239
-
format!("{}", state.volume.volume())
244
244
+
format!("{}", state.volume.raw_volume())
240
245
},
241
246
Rect {
242
247
x: size.x,