alsa-util: Add more standard sample rates

Link: 86c5fbab57
This commit is contained in:
Igor V. Kovalenko 2023-11-28 00:39:29 +03:00 committed by Wim Taymans
parent 84120e1167
commit ceb1c38ee9
2 changed files with 3 additions and 2 deletions

View file

@ -1418,7 +1418,8 @@ unsigned int *pa_alsa_get_supported_rates(snd_pcm_t *pcm, unsigned int fallback_
32000, 44100, 48000, 32000, 44100, 48000,
64000, 88200, 96000, 64000, 88200, 96000,
128000, 176400, 192000, 128000, 176400, 192000,
384000 }; 352800, 384000,
705600, 768000 };
bool supported[PA_ELEMENTSOF(all_rates)] = { false, }; bool supported[PA_ELEMENTSOF(all_rates)] = { false, };
snd_pcm_hw_params_t *hwparams; snd_pcm_hw_params_t *hwparams;
unsigned int i, j, n, *rates = NULL; unsigned int i, j, n, *rates = NULL;

View file

@ -96,7 +96,7 @@ typedef enum pa_available {
PA_AVAILABLE_YES = 2, PA_AVAILABLE_YES = 2,
} pa_available_t; } pa_available_t;
#define PA_RATE_MAX (48000U*8U) #define PA_RATE_MAX (48000U*16U)
typedef enum pa_sample_format { typedef enum pa_sample_format {
PA_SAMPLE_U8, /**< Unsigned 8 Bit PCM */ PA_SAMPLE_U8, /**< Unsigned 8 Bit PCM */