mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
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:
parent
0ec760315e
commit
c726dd887c
2 changed files with 42 additions and 36 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue