mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
alsa-util: Add more standard sample rates.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/776>
This commit is contained in:
parent
8152f39603
commit
86c5fbab57
2 changed files with 3 additions and 2 deletions
|
|
@ -1430,7 +1430,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;
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ PA_C_DECL_BEGIN
|
||||||
#define PA_CHANNELS_MAX 32U
|
#define PA_CHANNELS_MAX 32U
|
||||||
|
|
||||||
/** Maximum allowed sample rate */
|
/** Maximum allowed sample rate */
|
||||||
#define PA_RATE_MAX (48000U*8U)
|
#define PA_RATE_MAX (48000U*16U)
|
||||||
|
|
||||||
/** Sample format */
|
/** Sample format */
|
||||||
typedef enum pa_sample_format {
|
typedef enum pa_sample_format {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue