summaryrefslogtreecommitdiffstats
path: root/src/polyp/simple.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-04-07 01:29:33 +0000
committerLennart Poettering <lennart@poettering.net>2006-04-07 01:29:33 +0000
commitb8a729a00f170241599e670ee3f3f65457b4320f (patch)
tree292668e38552836336058d7191d2537da260e104 /src/polyp/simple.c
parentc0592bb27c28b7b7902a6b780daf89344bc3516d (diff)
* 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
Diffstat (limited to 'src/polyp/simple.c')
-rw-r--r--src/polyp/simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/polyp/simple.c b/src/polyp/simple.c
index 2593d5fa..f48c0b17 100644
--- a/src/polyp/simple.c
+++ b/src/polyp/simple.c
@@ -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;