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:
poljar (Damir Jelić) 2012-06-27 17:38:42 +02:00 committed by Tanu Kaskinen
parent f6e4bfbbc5
commit bf4091dcf8
7 changed files with 40 additions and 20 deletions

View file

@ -114,7 +114,7 @@ void pa_device_port_hashmap_free(pa_hashmap *h) {
pa_hashmap_free(h, NULL, NULL);
}
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) {
uint32_t state;
pa_assert(p);