summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjnqnfe <jnqnfe@gmail.com>2017-08-31 18:32:47 +0100
committerTanu Kaskinen <tanuk@iki.fi>2017-11-29 23:50:52 +0200
commita049e7e8bd0d984b27b6603e36430bee2a69a855 (patch)
treed780647a4767f311a6a74f77d1a4c2356e11b5ba /src
parent2f1dcea363342154a1f6af7bd4ade3f87403b744 (diff)
downloadpulseaudio-a049e7e8bd0d984b27b6603e36430bee2a69a855.tar.gz
volume: pa_cvolume_scale_mask: constify param
Diffstat (limited to 'src')
-rw-r--r--src/pulse/volume.c2
-rw-r--r--src/pulse/volume.h2
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