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

@ -43,7 +43,7 @@
#include "module-media-session/audio-dsp.h"
#define DEFAULT_CHANNELS 2
#define DEFAULT_SAMPLE_RATE 44100
#define DEFAULT_SAMPLE_RATE 48000
#define DEFAULT_BUFFER_SIZE (64 * sizeof(float))
#define MAX_BUFFER_SIZE (1024 * sizeof(float))

View file

@ -495,9 +495,9 @@ static int port_enum_formats(struct spa_node *node,
type->param.idEnumFormat, type->spa_format,
"I", t->media_type.audio,
"I", t->media_subtype.raw,
":", t->format_audio.format, "Ieu", t->audio_format.S16,
SPA_POD_PROP_ENUM(2, t->audio_format.S16,
t->audio_format.S32),
":", t->format_audio.format, "Ieu", t->audio_format.S32,
SPA_POD_PROP_ENUM(2, t->audio_format.S32,
t->audio_format.S16),
":", t->format_audio.layout, "i", SPA_AUDIO_LAYOUT_INTERLEAVED,
":", t->format_audio.rate, "iru", n->sample_rate,
SPA_POD_PROP_MIN_MAX(1, INT32_MAX),