mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
sink, source, device-port: renames to distinguish latency offsets
Renamed all variables pertaining to latency offsets of sinks and sources, calling them "port_latency_offset" or similar instead. All of these variables refer to latency offsets inherited from ports, rather than being unique to the sinks or sources themselves. This change is to pave the way for additional functionality for setting latency offsets on sources and sinks independenly from the value they inherit from their port. In order to implement them we first need this rename so that the two latency offsets can be stored individually and summed when reporting the total latency of the source or sink. The renames made are: pa_sink_set_latency_offset() -> pa_sink_set_port_latency_offset() pa_source_set_latency_offset() -> pa_source_set_port_latency_offset() sink->latency_offset -> sink->port_latency_offset sink->thread_info.latency_offset -> sink->thread_info.port_latency_offset source->latency_offset -> source->port_latency_offset source->thread_info.latency_offset -> source->thread_info.port_latency_offset PA_SINK_MESSAGE_SET_LATENCY_OFFSET -> PA_SINK_MESSAGE_SET_PORT_LATENCY_OFFSET PA_SOURCE_MESSAGE_SET_LATENCY_OFFSET -> PA_SOURCE_MESSAGE_SET_PORT_LATENCY_OFFSET
This commit is contained in:
parent
99c3bc69d5
commit
694662d936
5 changed files with 40 additions and 40 deletions
|
|
@ -161,7 +161,7 @@ void pa_device_port_set_latency_offset(pa_device_port *p, int64_t offset) {
|
|||
|
||||
PA_IDXSET_FOREACH(sink, p->core->sinks, state) {
|
||||
if (sink->active_port == p) {
|
||||
pa_sink_set_latency_offset(sink, p->latency_offset);
|
||||
pa_sink_set_port_latency_offset(sink, p->latency_offset);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -174,7 +174,7 @@ void pa_device_port_set_latency_offset(pa_device_port *p, int64_t offset) {
|
|||
|
||||
PA_IDXSET_FOREACH(source, p->core->sources, state) {
|
||||
if (source->active_port == p) {
|
||||
pa_source_set_latency_offset(source, p->latency_offset);
|
||||
pa_source_set_port_latency_offset(source, p->latency_offset);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue