alsa: increase target for a52 and dca

For encoded format, we need to send bigger chunks to make the encoder
happy. Add a new min_delay variable with this info so that we never
leave less than that amount of samples in the ringbuffer.

Fixes #2650
This commit is contained in:
Wim Taymans 2022-12-14 12:27:33 +01:00
parent cbc75dc98d
commit e5ac60b2b2
2 changed files with 11 additions and 3 deletions

View file

@ -197,6 +197,7 @@ struct state {
uint32_t last_threshold;
uint32_t headroom;
uint32_t start_delay;
uint32_t min_delay;
uint32_t duration;
unsigned int alsa_started:1;