mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
add input latency measurement
add GETOSPACE support to module-oss git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@205 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
f5d47a293a
commit
f9e2058820
20 changed files with 293 additions and 69 deletions
|
|
@ -60,6 +60,8 @@ struct pa_source_output* pa_source_output_new(struct pa_source *s, const char *n
|
|||
o->push = NULL;
|
||||
o->kill = NULL;
|
||||
o->userdata = NULL;
|
||||
o->get_latency = NULL;
|
||||
|
||||
o->resampler = resampler;
|
||||
|
||||
assert(s->core);
|
||||
|
|
@ -149,3 +151,12 @@ void pa_source_output_set_name(struct pa_source_output *o, const char *name) {
|
|||
|
||||
pa_subscription_post(o->source->core, PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT|PA_SUBSCRIPTION_EVENT_CHANGE, o->index);
|
||||
}
|
||||
|
||||
pa_usec_t pa_source_output_get_latency(struct pa_source_output *o) {
|
||||
assert(o && o->ref >= 1);
|
||||
|
||||
if (o->get_latency)
|
||||
return o->get_latency(o);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue