Add Cargo.toml metadata and reduce state broadcast channel capacity to 1
This commit is contained in:
parent
3ea3ef9277
commit
9cb683ddb3
3 changed files with 16 additions and 5 deletions
12
Cargo.toml
12
Cargo.toml
|
@ -2,12 +2,18 @@
|
|||
name = "pulseaudio-volume-interface"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
authors = ["Moritz Ruth"]
|
||||
description = "Allows observing/modifying PulseAudio volumes and the default source/sink"
|
||||
repository = "https://git.moritzruth.de/moritzruth/pulseaudio-volume-interface"
|
||||
license = "BlueOak-1.0.0"
|
||||
keywords = ["pulseaudio", "volume", "audio"]
|
||||
categories = ["os", "multimedia::audio"]
|
||||
|
||||
[dependencies]
|
||||
arc-swap = "1.7.1"
|
||||
async-broadcast = "0.7.1"
|
||||
flume = "0.11.0"
|
||||
im = "15.1.0"
|
||||
libpulse-binding = "2.28.1"
|
||||
log = "0.4.21"
|
||||
arc-swap = "1.7.1"
|
||||
oneshot = "0.1.8"
|
||||
async-broadcast = "0.7.1"
|
||||
oneshot = "0.1.8"
|
|
@ -1,3 +1,7 @@
|
|||
# pulseaudio-volume-interface
|
||||
> Rust library for observing and modifying PulseAudio source, sink, and sink input volumes. Also allows to set the default source and sink.
|
||||
> Rust library for observing/modifying PulseAudio volumes and the default source/sink.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
This project is available under the permissive [Blue Oak Model License 1.0.0](https://blueoakcouncil.org/license/1.0.0).
|
|
@ -386,7 +386,8 @@ pub(super) struct PaWorker {
|
|||
impl PaWorker {
|
||||
pub(super) fn spawn(client_name: String) -> PaWorker {
|
||||
let (commands_tx, commands_rx) = flume::unbounded();
|
||||
let (state_tx, _) = async_broadcast::broadcast(5);
|
||||
let (mut state_tx, _) = async_broadcast::broadcast(1);
|
||||
state_tx.set_overflow(true);
|
||||
|
||||
let worker = PaWorker {
|
||||
commands_tx: commands_tx.clone(),
|
||||
|
|
Loading…
Add table
Reference in a new issue