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
}
59
}
60
0
0
0
0
0
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,