mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -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
|
|
@ -92,7 +92,7 @@
|
|||
" por %%mm4, "#s1" \n\t" /* .. | l h | */ \
|
||||
" por %%mm5, "#s2" \n\t"
|
||||
|
||||
static void pa_volume_s16ne_mmx(int16_t *samples, int32_t *volumes, unsigned channels, unsigned length) {
|
||||
static void pa_volume_s16ne_mmx(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) {
|
||||
pa_reg_x86 channel, temp;
|
||||
|
||||
/* Channels must be at least 4, and always a multiple of the original number.
|
||||
|
|
@ -161,7 +161,7 @@ static void pa_volume_s16ne_mmx(int16_t *samples, int32_t *volumes, unsigned cha
|
|||
);
|
||||
}
|
||||
|
||||
static void pa_volume_s16re_mmx(int16_t *samples, int32_t *volumes, unsigned channels, unsigned length) {
|
||||
static void pa_volume_s16re_mmx(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) {
|
||||
pa_reg_x86 channel, temp;
|
||||
|
||||
/* Channels must be at least 4, and always a multiple of the original number.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue