audio: Fix setting default source/sink
This commit is contained in:
parent
a431457468
commit
2e04938bbd
3 changed files with 14 additions and 24 deletions
|
|
@ -144,12 +144,14 @@ impl PA {
|
|||
receiver.await.unwrap()
|
||||
}
|
||||
|
||||
/*
|
||||
// XXX async wait and handle error
|
||||
pub fn set_default_sink(&mut self, name: &str) {
|
||||
self.0.context.set_default_sink(name, |_| {});
|
||||
pub fn set_default_sink(&self, name: &str) {
|
||||
self.0.context.borrow_mut().set_default_sink(name, |_| {});
|
||||
}
|
||||
|
||||
pub fn set_default_source(&self, name: &str) {
|
||||
self.0.context.borrow_mut().set_default_source(name, |_| {});
|
||||
}
|
||||
*/
|
||||
|
||||
pub async fn get_source_info_list(&self) -> Result<Vec<DeviceInfo>, ()> {
|
||||
let (sender, receiver) = oneshot::channel();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue