summaryrefslogtreecommitdiffstats
path: root/src/polyp/simple.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-05-20 14:59:02 +0000
committerLennart Poettering <lennart@poettering.net>2006-05-20 14:59:02 +0000
commitcc61b57a325ee688b74ca2cbd5e281e7f76b71c0 (patch)
treebf5965e3c069a9739686d00e91423ba15075e555 /src/polyp/simple.c
parentacc655235663f223f10bd26c6e6d1ebc6331d9bd (diff)
rename pa_simple_get_playback_latency() to pa_simple_get_latency() and allow its usage on capture streams
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@939 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polyp/simple.c')
-rw-r--r--src/polyp/simple.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/polyp/simple.c b/src/polyp/simple.c
index 84c46bf1..9c2c908c 100644
--- a/src/polyp/simple.c
+++ b/src/polyp/simple.c
@@ -423,14 +423,12 @@ unlock_and_fail:
return -1;
}
-pa_usec_t pa_simple_get_playback_latency(pa_simple *p, int *rerror) {
+pa_usec_t pa_simple_get_latency(pa_simple *p, int *rerror) {
pa_usec_t t;
int negative;
assert(p);
- CHECK_VALIDITY_RETURN_ANY(rerror, p->direction == PA_STREAM_PLAYBACK, PA_ERR_BADSTATE, (pa_usec_t) -1);
-
pa_threaded_mainloop_lock(p->mainloop);
for (;;) {