alsa: use position duration as period size

Use half of the configured quantum as the period size in batch mode.
This gives lower latency for USB devices depending on the quantum.
This commit is contained in:
Wim Taymans 2021-12-17 16:08:08 +01:00
parent 15ce86aff1
commit 8630b8846c
2 changed files with 6 additions and 1 deletions

View file

@ -55,6 +55,7 @@ extern "C" {
#define MIN_LATENCY 16
#define MAX_LATENCY 8192
#define DEFAULT_PERIOD 1024u
#define DEFAULT_RATE 48000u
#define DEFAULT_CHANNELS 2u
#define DEFAULT_USE_CHMAP false