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
This commit is contained in:
Lennart Poettering 2006-05-20 14:59:02 +00:00
parent acc6552356
commit cc61b57a32
3 changed files with 4 additions and 6 deletions

View file

@ -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 (;;) {