diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2018-05-27 07:56:11 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2018-06-12 10:09:36 +0300 |
commit | 4ad0a4a471fbe23a6dce727951280b8bb9574a17 (patch) | |
tree | 8a88a14f2472900274ef398ecf5ea9a736692ff8 | |
parent | 51aa5c646ed7648b9db1febc0a04c37d13368522 (diff) | |
download | pulseaudio-4ad0a4a471fbe23a6dce727951280b8bb9574a17.tar.gz |
volume: pa_cvolume_get_position: constify
-rw-r--r-- | src/pulse/volume.c | 2 | ||||
-rw-r--r-- | 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 ead541521..fc6ac8d28 100644 --- a/src/pulse/volume.c +++ b/src/pulse/volume.c @@ -911,7 +911,7 @@ pa_cvolume* pa_cvolume_set_position( } pa_volume_t pa_cvolume_get_position( - pa_cvolume *cv, + const pa_cvolume *cv, const pa_channel_map *map, pa_channel_position_t t) { diff --git a/src/pulse/volume.h b/src/pulse/volume.h index 2503c3f60..fe44b0bbc 100644 --- a/src/pulse/volume.h +++ b/src/pulse/volume.h @@ -416,7 +416,7 @@ pa_cvolume* pa_cvolume_set_position(pa_cvolume *cv, const pa_channel_map *map, p * position. Will return 0 if there is no channel at the position * specified. You can check if a channel map includes a specific * position by calling pa_channel_map_has_position(). \since 0.9.16 */ -pa_volume_t pa_cvolume_get_position(pa_cvolume *cv, const pa_channel_map *map, pa_channel_position_t t) PA_GCC_PURE; +pa_volume_t pa_cvolume_get_position(const pa_cvolume *cv, const pa_channel_map *map, pa_channel_position_t t) PA_GCC_PURE; /** This goes through all channels in a and b and sets the * corresponding channel in dest to the greater volume of both. a, b |