mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-22 06:59:59 -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
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue