mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
* update docs for reworked latency API
* rename pa_latency_info to pa_timing_info, since that describes better what it is. Most people will only use pa_stream_get_time() anyway git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@651 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c0592bb27c
commit
b8a729a00f
6 changed files with 142 additions and 94 deletions
|
|
@ -345,7 +345,7 @@ int pa_simple_drain(pa_simple *p, int *rerror) {
|
|||
return p->dead ? -1 : 0;
|
||||
}
|
||||
|
||||
static void latency_complete(pa_stream *s, int success, void *userdata) {
|
||||
static void timing_complete(pa_stream *s, int success, void *userdata) {
|
||||
pa_simple *p = userdata;
|
||||
|
||||
assert(s);
|
||||
|
|
@ -377,7 +377,7 @@ pa_usec_t pa_simple_get_playback_latency(pa_simple *p, int *rerror) {
|
|||
}
|
||||
|
||||
p->latency = 0;
|
||||
if (!(o = pa_stream_update_latency_info(p->stream, latency_complete, p))) {
|
||||
if (!(o = pa_stream_update_timing_info(p->stream, timing_complete, p))) {
|
||||
if (rerror)
|
||||
*rerror = pa_context_errno(p->context);
|
||||
return (pa_usec_t) -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue