diff options
Diffstat (limited to 'src/pcm_utils.c')
-rw-r--r-- | src/pcm_utils.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/pcm_utils.c b/src/pcm_utils.c index 17449f7d2..c3526f9d1 100644 --- a/src/pcm_utils.c +++ b/src/pcm_utils.c @@ -47,8 +47,7 @@ pcm_range(int32_t sample, unsigned bits) } static void -pcm_volume_change_8(int8_t *buffer, unsigned num_samples, - unsigned volume) +pcm_volume_change_8(int8_t *buffer, unsigned num_samples, int volume) { while (num_samples > 0) { int32_t sample = *buffer; @@ -61,8 +60,7 @@ pcm_volume_change_8(int8_t *buffer, unsigned num_samples, } static void -pcm_volume_change_16(int16_t *buffer, unsigned num_samples, - unsigned volume) +pcm_volume_change_16(int16_t *buffer, unsigned num_samples, int volume) { while (num_samples > 0) { int32_t sample = *buffer; @@ -75,8 +73,7 @@ pcm_volume_change_16(int16_t *buffer, unsigned num_samples, } static void -pcm_volume_change_24(int32_t *buffer, unsigned num_samples, - unsigned volume) +pcm_volume_change_24(int32_t *buffer, unsigned num_samples, int volume) { while (num_samples > 0) { int64_t sample = *buffer; |