mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -05:00
alsa: add audio.allowed-rates param
Add a construct and runtime param to limit the amount of allowed samplerates used by the node. Fixes #1932
This commit is contained in:
parent
c3725d5dde
commit
67dc97fa43
4 changed files with 107 additions and 13 deletions
|
|
@ -304,6 +304,8 @@ struct spa_audio_info_raw {
|
|||
#define SPA_KEY_AUDIO_RATE "audio.rate" /**< an audio sample rate as int */
|
||||
#define SPA_KEY_AUDIO_POSITION "audio.position" /**< channel positions as comma separated list
|
||||
* of channels ex. "FL,FR" */
|
||||
#define SPA_KEY_AUDIO_ALLOWED_RATES "audio.allowed-rates" /**< a list of allowed samplerates
|
||||
* ex. "[ 44100 48000 ]" */
|
||||
|
||||
struct spa_audio_info_dsp {
|
||||
enum spa_audio_format format; /*< format, one of the DSP formats in enum spa_audio_format_dsp */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue