use device name instead of node id to get audio device

This commit is contained in:
2025-10-05 23:26:29 +03:00
parent d877f79d5c
commit 874c8063aa
11 changed files with 35 additions and 42 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ impl Request {
Request::new("seek", vec![("position", &position.to_string())])
}
pub fn set_input(id: u32) -> Self {
Request::new("set_input", vec![("input_id", &id.to_string())])
pub fn set_input(name: &str) -> Self {
Request::new("set_input", vec![("input_name", name)])
}
}