diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-04-09 01:16:43 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-04-09 01:16:43 +0000 |
commit | da37a7e93db0f17e03f94f7835d7075faa3ac4ba (patch) | |
tree | 040b705c610962c101bf1225709efc2858de7e49 /src/pulsecore/source.h | |
parent | ad18107223e8c4199b86bb3616677a2b57293fad (diff) |
export both min and max latency that is configured for a sink; add API for querying the requested latency of a sink/source from the main thread
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2225 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/source.h')
-rw-r--r-- | src/pulsecore/source.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulsecore/source.h b/src/pulsecore/source.h index 3ec8320d..ab7236eb 100644 --- a/src/pulsecore/source.h +++ b/src/pulsecore/source.h @@ -92,6 +92,7 @@ struct pa_source { pa_rtpoll *rtpoll; pa_usec_t min_latency; /* we won't go below this latency setting */ + pa_usec_t max_latency; /* An upper limit for the latencies */ int (*set_state)(pa_source*source, pa_source_state_t state); /* may be NULL */ int (*set_volume)(pa_source *s); /* dito */ @@ -127,6 +128,7 @@ typedef enum pa_source_message { PA_SOURCE_MESSAGE_GET_MUTE, PA_SOURCE_MESSAGE_SET_MUTE, PA_SOURCE_MESSAGE_GET_LATENCY, + PA_SOURCE_MESSAGE_GET_REQUESTED_LATENCY, PA_SOURCE_MESSAGE_SET_STATE, PA_SOURCE_MESSAGE_PING, PA_SOURCE_MESSAGE_ATTACH, @@ -181,6 +183,7 @@ void pa_source_attach(pa_source *s); /* May be called by everyone, from main context */ pa_usec_t pa_source_get_latency(pa_source *s); +pa_usec_t pa_source_get_requested_latency(pa_source *s); int pa_source_update_status(pa_source*s); int pa_source_suspend(pa_source *s, pa_bool_t suspend); @@ -206,7 +209,7 @@ int pa_source_process_msg(pa_msgobject *o, int code, void *userdata, int64_t, pa void pa_source_attach_within_thread(pa_source *s); void pa_source_detach_within_thread(pa_source *s); -pa_usec_t pa_source_get_requested_latency(pa_source *s); +pa_usec_t pa_source_get_requested_latency_within_thread(pa_source *s); /* To be called exclusively by source output drivers, from IO context */ |