mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 06:21:23 +00:00
use device name instead of node id to get audio device
This commit is contained in:
+2
-2
@@ -72,7 +72,7 @@ enum SetCommands {
|
||||
/// Playback position
|
||||
Position { position: f32 },
|
||||
/// Input
|
||||
Input { id: u32 },
|
||||
Input { name: String },
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
@@ -102,7 +102,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
Commands::Set { parameter } => match parameter {
|
||||
SetCommands::Volume { volume } => Request::set_volume(volume),
|
||||
SetCommands::Position { position } => Request::seek(position),
|
||||
SetCommands::Input { id } => Request::set_input(id),
|
||||
SetCommands::Input { name } => Request::set_input(&name),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user