mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
alsa: set the driver rate in the clock io
Rename some variables to make it clear that we are dealing with the rate and duration of the driver. Set the driver rate in the clock instead of the target_rate, which we might have rejected.
This commit is contained in:
parent
20db9e2d70
commit
a56ed47c5e
2 changed files with 25 additions and 23 deletions
|
|
@ -153,7 +153,6 @@ struct state {
|
|||
size_t frame_size;
|
||||
size_t frame_scale;
|
||||
int blocks;
|
||||
uint32_t rate_denom;
|
||||
uint32_t delay;
|
||||
uint32_t read_size;
|
||||
uint32_t max_read;
|
||||
|
|
@ -195,7 +194,9 @@ struct state {
|
|||
uint32_t max_delay;
|
||||
uint32_t htimestamp_error;
|
||||
|
||||
uint32_t duration;
|
||||
struct spa_fraction driver_rate;
|
||||
uint32_t driver_duration;
|
||||
|
||||
unsigned int alsa_started:1;
|
||||
unsigned int alsa_sync:1;
|
||||
unsigned int alsa_sync_warning:1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue