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:
Wim Taymans 2022-01-03 16:03:23 +01:00
parent c3725d5dde
commit 67dc97fa43
4 changed files with 107 additions and 13 deletions

View file

@ -314,6 +314,8 @@ extern "C" {
#define PW_KEY_AUDIO_RATE "audio.rate" /**< an audio samplerate */
#define PW_KEY_AUDIO_CHANNELS "audio.channels" /**< number of audio channels */
#define PW_KEY_AUDIO_FORMAT "audio.format" /**< an audio format. Ex: "S16LE" */
#define PW_KEY_AUDIO_ALLOWED_RATES "audio.allowed-rates" /**< a list of allowed samplerates
* ex. "[ 44100 48000 ]" */
/** video related properties */
#define PW_KEY_VIDEO_RATE "video.framerate" /**< a video framerate */