diff options
Diffstat (limited to 'src/pulsecore/source.c')
-rw-r--r-- | src/pulsecore/source.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index cc1c531d..b150d8ac 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -32,6 +32,7 @@ #include <pulse/utf8.h> #include <pulse/xmalloc.h> +#include <pulse/timeval.h> #include <pulsecore/source-output.h> #include <pulsecore/namereg.h> @@ -41,6 +42,8 @@ #include "source.h" +#define DEFAULT_MIN_LATENCY (4*PA_USEC_PER_MSEC) + static PA_DEFINE_CHECK_TYPE(pa_source, pa_msgobject); static void source_free(pa_object *o); @@ -162,6 +165,8 @@ pa_source* pa_source_new( s->muted = data->muted; s->refresh_volume = s->refresh_muted = FALSE; + s->min_latency = DEFAULT_MIN_LATENCY; + s->get_latency = NULL; s->set_volume = NULL; s->get_volume = NULL; |