wayle-audio 0.1.4

PulseAudio service with reactive state
Documentation
1
2
3
4
5
6
7
8
9
use libpulse_binding::context::subscribe::Operation;

use crate::backend::types::{InternalCommandSender, InternalRefresh};

pub(crate) async fn handle_change(operation: Operation, command_tx: &InternalCommandSender) {
    if operation == Operation::Changed {
        let _ = command_tx.send(InternalRefresh::ServerInfo);
    }
}