feat: you can now get volume for all sound individually, not only via fullstate

This commit is contained in:
2026-02-25 00:34:05 +03:00
parent e72fc519a0
commit ce948ce678
5 changed files with 36 additions and 8 deletions
+8 -2
View File
@@ -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 {