From a049e7e8bd0d984b27b6603e36430bee2a69a855 Mon Sep 17 00:00:00 2001 From: jnqnfe Date: Thu, 31 Aug 2017 18:32:47 +0100 Subject: [PATCH] volume: pa_cvolume_scale_mask: constify param --- src/pulse/volume.c | 2 +- src/pulse/volume.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulse/volume.c b/src/pulse/volume.c index ffd42ecb3..6b0c4b687 100644 --- a/src/pulse/volume.c +++ b/src/pulse/volume.c @@ -789,7 +789,7 @@ pa_cvolume* pa_cvolume_scale(pa_cvolume *v, pa_volume_t max) { return v; } -pa_cvolume* pa_cvolume_scale_mask(pa_cvolume *v, pa_volume_t max, pa_channel_map *cm, pa_channel_position_mask_t mask) { +pa_cvolume* pa_cvolume_scale_mask(pa_cvolume *v, pa_volume_t max, const pa_channel_map *cm, pa_channel_position_mask_t mask) { unsigned c; pa_volume_t t = 0; diff --git a/src/pulse/volume.h b/src/pulse/volume.h index 03497f747..08db7cfe3 100644 --- a/src/pulse/volume.h +++ b/src/pulse/volume.h @@ -396,7 +396,7 @@ pa_cvolume* pa_cvolume_scale(pa_cvolume *v, pa_volume_t max); * of all channels selected via cm/mask equals max. This also modifies * the volume of those channels that are unmasked. The proportions * between the channel volumes are kept. \since 0.9.16 */ -pa_cvolume* pa_cvolume_scale_mask(pa_cvolume *v, pa_volume_t max, pa_channel_map *cm, pa_channel_position_mask_t mask); +pa_cvolume* pa_cvolume_scale_mask(pa_cvolume *v, pa_volume_t max, const pa_channel_map *cm, pa_channel_position_mask_t mask); /** Set the passed volume to all channels at the specified channel * position. Will return the updated volume struct, or NULL if there