mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
mix: Length over all chunk has already been computed by the caller
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
3963fc5e5b
commit
b5b4a1078c
1 changed files with 1 additions and 2 deletions
|
|
@ -641,9 +641,8 @@ size_t pa_mix(
|
|||
}
|
||||
|
||||
for (k = 0; k < nstreams; k++) {
|
||||
pa_assert(length <= streams[k].chunk.length);
|
||||
streams[k].ptr = pa_memblock_acquire_chunk(&streams[k].chunk);
|
||||
if (length > streams[k].chunk.length)
|
||||
length = streams[k].chunk.length;
|
||||
}
|
||||
|
||||
calc_stream_volumes_table[spec->format](streams, nstreams, volume, spec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue