alsa: refactory _io_position checking

Move the code to check the position duration for changes to one
new method.
Also check for samplerate changes and adjust the resampler state
accordingly.
This commit is contained in:
Wim Taymans 2021-06-14 12:09:13 +02:00
parent 0ec760315e
commit c726dd887c
2 changed files with 42 additions and 36 deletions

View file

@ -135,7 +135,7 @@ struct state {
int channels;
size_t frame_size;
int blocks;
int rate_denom;
uint32_t rate_denom;
uint32_t delay;
uint32_t read_size;