Add PIPEWIRE_QUANTUM env variable

That tries to both set the buffersize and the samplerate of the graph.
Document them in README.md
Also add the same env variables to pw-stream and pw-filter.
This commit is contained in:
Wim Taymans 2022-01-23 11:21:18 +01:00
parent f4021c7f44
commit 0bc3d1444a
5 changed files with 43 additions and 5 deletions

View file

@ -48,6 +48,13 @@ applications:
expressed as a fraction of the samplerate,
like 256/48000, which uses 256 samples at a
samplerate of 48KHz for a latency of 5.33ms.
This function does not attempt to configure
the samplerate.
* `PIPEWIRE_RATE=<num/denom>` to configure a rate for the graph.
* `PIPEWIRE_QUANTUM=<num/denom>` to configure latency as a fraction and a
samplerate. This function will attempt to change
the graph samplerate and use the specified
<num> as the buffer size.
* `PIPEWIRE_NODE=<id>` to request a link to the specified node
### Using tools