alsa: add option do use chmap from alsa, disable by default

This should be more in line with what PulseAudio does and so lead
to less surprises.

See #289
This commit is contained in:
Wim Taymans 2020-09-14 20:15:48 +02:00
parent 30dfe16c52
commit 2b0b44edc0
4 changed files with 39 additions and 17 deletions

View file

@ -50,6 +50,7 @@ extern "C" {
#define DEFAULT_RATE 48000u
#define DEFAULT_CHANNELS 2u
#define DEFAULT_USE_CHMAP false
struct props {
char device[64];
@ -57,6 +58,7 @@ struct props {
char card_name[128];
uint32_t min_latency;
uint32_t max_latency;
bool use_chmap;
};
#define MAX_BUFFERS 32