mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 06:21:23 +00:00
feat: you can now get volume for all sound individually, not only via fullstate
This commit is contained in:
+8
-2
@@ -82,8 +82,14 @@ impl Request {
|
||||
Request::new("is_paused", vec![])
|
||||
}
|
||||
|
||||
pub fn get_volume() -> Self {
|
||||
Request::new("get_volume", vec![])
|
||||
pub fn get_volume(id: Option<u32>) -> Self {
|
||||
let mut args = vec![];
|
||||
let id_str;
|
||||
if let Some(id) = id {
|
||||
id_str = id.to_string();
|
||||
args.push(("id", id_str.as_str()));
|
||||
}
|
||||
Request::new("get_volume", args)
|
||||
}
|
||||
|
||||
pub fn get_position(id: Option<u32>) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user