mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 14:31:23 +00:00
use device name instead of node id to get audio device
This commit is contained in:
+2
-2
@@ -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)])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user