mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-01 15:57:46 +02:00
fix: Load audio listener properly
This commit is contained in:
parent
9108ab0d74
commit
b28b736697
14 changed files with 440 additions and 143 deletions
|
@ -302,16 +302,7 @@ fn get_cards() -> Vec<Card> {
|
|||
res.unwrap().0
|
||||
}
|
||||
|
||||
pub fn start_output_box_listener(
|
||||
conn: Connection,
|
||||
listeners: Arc<Listeners>,
|
||||
sink_box: Arc<SinkBox>,
|
||||
) -> Connection {
|
||||
if listeners.network_listener.load(Ordering::SeqCst) {
|
||||
return conn;
|
||||
}
|
||||
listeners.network_listener.store(true, Ordering::SeqCst);
|
||||
|
||||
pub fn start_output_box_listener(conn: Connection, sink_box: Arc<SinkBox>) -> Connection {
|
||||
let sink_added = SinkAdded::match_rule(
|
||||
Some(&"org.xetibo.ReSet".into()),
|
||||
Some(&Path::from("/org/xetibo/ReSet")),
|
||||
|
@ -551,6 +542,5 @@ pub fn start_output_box_listener(
|
|||
return conn;
|
||||
}
|
||||
|
||||
listeners.network_listener.store(true, Ordering::SeqCst);
|
||||
conn
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue