alsa: add option to force a samplerate

This commit is contained in:
Wim Taymans 2020-09-16 15:14:26 +02:00
parent e5f7e040dc
commit 1bf6dead10
5 changed files with 13 additions and 0 deletions

View file

@ -222,6 +222,7 @@ struct spa_audio_info_raw {
#define SPA_KEY_AUDIO_CHANNEL "audio.channel" /**< an audio channel as string,
* Ex. "FL" */
#define SPA_KEY_AUDIO_CHANNELS "audio.channels" /**< an audio channel count as int */
#define SPA_KEY_AUDIO_RATE "audio.rate" /**< an audio sample rate as int */
struct spa_audio_info_dsp {
enum spa_audio_format format; /*< format, one of the DSP formats in enum spa_audio_format_dsp */