mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
device-port: Change the latency offset type to a signed int.
The latency offset type should be signed (int64_t) so we can also add a negative latency offset. This also includes changing the type of the sink/source offsets and updating pacmd so it handles negative numbers.
This commit is contained in:
parent
f6e4bfbbc5
commit
bf4091dcf8
7 changed files with 40 additions and 20 deletions
|
|
@ -51,7 +51,7 @@ struct pa_device_port {
|
|||
pa_hashmap *profiles; /* Does not own the profiles */
|
||||
pa_bool_t is_input:1;
|
||||
pa_bool_t is_output:1;
|
||||
pa_usec_t latency_offset;
|
||||
int64_t latency_offset;
|
||||
|
||||
/* .. followed by some implementation specific data */
|
||||
};
|
||||
|
|
@ -68,6 +68,6 @@ void pa_device_port_hashmap_free(pa_hashmap *h);
|
|||
/* The port's available status has changed */
|
||||
void pa_device_port_set_available(pa_device_port *p, pa_port_available_t available);
|
||||
|
||||
void pa_device_port_set_latency_offset(pa_device_port *p, pa_usec_t offset);
|
||||
void pa_device_port_set_latency_offset(pa_device_port *p, int64_t offset);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue