summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-06-23 20:04:47 +0000
committerLennart Poettering <lennart@poettering.net>2007-06-23 20:04:47 +0000
commit013a55a692d652ce079b9dbd5f768a0a0680f727 (patch)
treefb6652b5dea7029d159f11c5e79d53f859bb9cf2 /src/pulsecore/sink.h
parent780f736547616e4e06941d94e77f456abca12a9c (diff)
remove underrun condition in pa_sinks. Instead return silence in pa_sink_render() when necessary. This is required to guarantee that the time functions in connected sink inputs stays linear
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1490 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/sink.h')
-rw-r--r--src/pulsecore/sink.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h
index 0b308e53..dab97453 100644
--- a/src/pulsecore/sink.h
+++ b/src/pulsecore/sink.h
@@ -92,6 +92,8 @@ struct pa_sink {
int soft_muted;
} thread_info;
+ pa_memblock *silence;
+
void *userdata;
};
@@ -149,9 +151,9 @@ unsigned pa_sink_used_by(pa_sink *s);
/* To be used exclusively by the sink driver thread */
-int pa_sink_render(pa_sink*s, size_t length, pa_memchunk *result);
+void pa_sink_render(pa_sink*s, size_t length, pa_memchunk *result);
void pa_sink_render_full(pa_sink *s, size_t length, pa_memchunk *result);
-int pa_sink_render_into(pa_sink*s, pa_memchunk *target);
+void pa_sink_render_into(pa_sink*s, pa_memchunk *target);
void pa_sink_render_into_full(pa_sink *s, pa_memchunk *target);
int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, pa_memchunk *chunk);