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

@ -1766,7 +1766,7 @@ static int pa_cli_command_port_offset(pa_core *c, pa_tokenizer *t, pa_strbuf *bu
return -1;
}
pa_device_port_set_latency_offset(port, (pa_usec_t) offset);
pa_device_port_set_latency_offset(port, offset);
return 0;
}