mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
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
This commit is contained in:
parent
780f736547
commit
013a55a692
2 changed files with 81 additions and 55 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue