mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
core: Set volumes const in pa_do_volume_func_t
volumes do not change, the samples get scaled Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
This commit is contained in:
parent
9b80d1d14a
commit
503de445a6
6 changed files with 19 additions and 19 deletions
|
|
@ -34,7 +34,7 @@
|
|||
pa_do_volume_func_t fallback;
|
||||
|
||||
static void
|
||||
pa_volume_s16ne_orc(int16_t *samples, int32_t *volumes, unsigned channels, unsigned length)
|
||||
pa_volume_s16ne_orc(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length)
|
||||
{
|
||||
if (channels == 2) {
|
||||
int64_t v = (int64_t)volumes[1] << 32 | volumes[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue