mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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:
parent
acc6552356
commit
cc61b57a32
3 changed files with 4 additions and 6 deletions
|
|
@ -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 (;;) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue