app: edit per-application volume in the audio tab
Each configured source gets a slider that sends updateAudioSource as it moves, so a change is heard while dragging. The demo data now includes two application sources and a microphone, which the screenshots use. Also look the game up by recording id in the review screen, so a refresh that adds a recording does not change what is open.
This commit is contained in:
1 parent
0377141e4f
commit
8883e93d2b
5 files changed
+85
-14
No files matched your search
+2
-1
@@ -180,11 +180,12 @@ pub fn toggle_row(
|
||||
/// A 0-100 slider with its value spelled out on the right.
|
||||
pub fn slider(
|
||||
p: Paint,
|
||||
key: &'static str,
|
||||
key: impl Into<String>,
|
||||
label: &'static str,
|
||||
value: u32,
|
||||
on_change: impl Fn(&mut App, u32) + Send + Sync + 'static,
|
||||
) -> El {
|
||||
let key = key.into();
|
||||
let (w, h, k, bar) = (180.0, 22.0, 18.0, 4.0);
|
||||
let travel = w - k;
|
||||
let v = (value.min(100) as f32 / 100.0).clamp(0.0, 1.0);
|
||||
|
||||
Reference in new issue
Block a user