prefer 48KHz and 32 bit samples when we can

This commit is contained in:
Wim Taymans 2018-05-24 16:14:53 +02:00
parent f5f1a435cc
commit 2e0e68e46e
5 changed files with 10 additions and 8 deletions

View file

@ -195,7 +195,7 @@ spa_alsa_enum_format(struct state *state, uint32_t *index,
prop = spa_pod_builder_deref(&b,
spa_pod_builder_push_prop(&b, state->type.format_audio.rate, SPA_POD_PROP_RANGE_NONE));
spa_pod_builder_int(&b, SPA_CLAMP(44100, min, max));
spa_pod_builder_int(&b, SPA_CLAMP(48000, min, max));
if (min != max) {
spa_pod_builder_int(&b, min);
spa_pod_builder_int(&b, max);