mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-18 08:56:40 -05:00
add support for module search path as command line argument
protocol-native: move first data request into ack of stream creation improve mainloop API: return the number of dispatched sources on iterate() fix a resampling bug introduce network latency measurement WARNING: all these changes together may break some applications git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@189 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
0c99fb3182
commit
25123469d5
20 changed files with 210 additions and 60 deletions
|
|
@ -129,7 +129,7 @@ int pa_sink_input_peek(struct pa_sink_input *i, struct pa_memchunk *chunk) {
|
|||
if (!i->resampler)
|
||||
return i->peek(i, chunk);
|
||||
|
||||
if (!i->resampled_chunk.memblock) {
|
||||
while (!i->resampled_chunk.memblock) {
|
||||
struct pa_memchunk tchunk;
|
||||
size_t l;
|
||||
int ret;
|
||||
|
|
@ -141,10 +141,11 @@ int pa_sink_input_peek(struct pa_sink_input *i, struct pa_memchunk *chunk) {
|
|||
|
||||
l = pa_resampler_request(i->resampler, CONVERT_BUFFER_LENGTH);
|
||||
|
||||
if (tchunk.length > l)
|
||||
tchunk.length = l;
|
||||
if (l > tchunk.length)
|
||||
l = tchunk.length;
|
||||
|
||||
i->drop(i, &tchunk, tchunk.length);
|
||||
i->drop(i, &tchunk, l);
|
||||
tchunk.length = l;
|
||||
|
||||
pa_resampler_run(i->resampler, &tchunk, &i->resampled_chunk);
|
||||
pa_memblock_unref(tchunk.memblock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue