[pulseaudio-commits] Branch 'next' - 15 commits - src/pulse
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Tue Jun 12 08:06:48 UTC 2018
src/pulse/context.c | 6 +++---
src/pulse/context.h | 6 +++---
src/pulse/mainloop.c | 2 +-
src/pulse/mainloop.h | 2 +-
src/pulse/operation.c | 2 +-
src/pulse/operation.h | 2 +-
src/pulse/stream.c | 24 ++++++++++++------------
src/pulse/stream.h | 24 ++++++++++++------------
src/pulse/thread-mainloop.c | 2 +-
src/pulse/thread-mainloop.h | 2 +-
src/pulse/volume.c | 2 +-
src/pulse/volume.h | 2 +-
12 files changed, 38 insertions(+), 38 deletions(-)
New commits:
commit e59e622e312b3c3e15a9a8a4413acb5006078c53
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 06:08:16 2018 +0100
stream: pa_stream_get_monitor_stream: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index b23323d2..73743cbb 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -2915,7 +2915,7 @@ int pa_stream_set_monitor_stream(pa_stream *s, uint32_t sink_input_idx) {
return 0;
}
-uint32_t pa_stream_get_monitor_stream(pa_stream *s) {
+uint32_t pa_stream_get_monitor_stream(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 667af853..7913f7fe 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -801,7 +801,7 @@ int pa_stream_set_monitor_stream(pa_stream *s, uint32_t sink_input_idx);
/** Return the sink input index previously set with
* pa_stream_set_monitor_stream(). Returns PA_INVALID_INDEX
* on failure. \since 0.9.11 */
-uint32_t pa_stream_get_monitor_stream(pa_stream *s);
+uint32_t pa_stream_get_monitor_stream(const pa_stream *s);
PA_C_DECL_END
commit 57d29899e98e4cb9880cd64b4e444a2b173a3074
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Mon May 28 00:03:14 2018 +0100
stream: pa_stream_get_format_info: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index d57c27ad..b23323d2 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -2570,7 +2570,7 @@ const pa_channel_map* pa_stream_get_channel_map(pa_stream *s) {
return &s->channel_map;
}
-const pa_format_info* pa_stream_get_format_info(pa_stream *s) {
+const pa_format_info* pa_stream_get_format_info(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 1c228354..667af853 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -751,7 +751,7 @@ const pa_sample_spec* pa_stream_get_sample_spec(pa_stream *s);
const pa_channel_map* pa_stream_get_channel_map(pa_stream *s);
/** Return a pointer to the stream's format. \since 1.0 */
-const pa_format_info* pa_stream_get_format_info(pa_stream *s);
+const pa_format_info* pa_stream_get_format_info(const pa_stream *s);
/** Return the per-stream server-side buffer metrics of the
* stream. Only valid after the stream has been connected successfully
commit d39e0bc92596ca56db78c0bba2803fbf4b484b48
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 06:00:02 2018 +0100
stream: pa_stream_get_underflow_index: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index 4786d751..d57c27ad 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -850,7 +850,7 @@ finish:
pa_context_unref(c);
}
-int64_t pa_stream_get_underflow_index(pa_stream *p) {
+int64_t pa_stream_get_underflow_index(const pa_stream *p) {
pa_assert(p);
return p->latest_underrun_at_index;
}
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 4a2efada..1c228354 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -602,7 +602,7 @@ void pa_stream_set_overflow_callback(pa_stream *p, pa_stream_notify_cb_t cb, voi
* known (e.g.\ if no underflow has occurred, or server is older than 1.0).
* Can be used inside the underflow callback to get information about the current underflow.
* (Only for playback streams) \since 1.0 */
-int64_t pa_stream_get_underflow_index(pa_stream *p);
+int64_t pa_stream_get_underflow_index(const pa_stream *p);
/** Set the callback function that is called when a buffer underflow happens. (Only for playback streams) */
void pa_stream_set_underflow_callback(pa_stream *p, pa_stream_notify_cb_t cb, void *userdata);
commit b4866a1c56f616d01c2b271889aaad35d181672a
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 05:57:52 2018 +0100
stream: pa_stream_[writable|readable]_size: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index e32dd008..4786d751 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -1678,7 +1678,7 @@ int pa_stream_drop(pa_stream *s) {
return 0;
}
-size_t pa_stream_writable_size(pa_stream *s) {
+size_t pa_stream_writable_size(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
@@ -1689,7 +1689,7 @@ size_t pa_stream_writable_size(pa_stream *s) {
return s->requested_bytes > 0 ? (size_t) s->requested_bytes : 0;
}
-size_t pa_stream_readable_size(pa_stream *s) {
+size_t pa_stream_readable_size(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 89a8924c..4a2efada 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -566,12 +566,12 @@ int pa_stream_drop(pa_stream *p);
*
* (size_t) -1 is returned on error.
*/
-size_t pa_stream_writable_size(pa_stream *p);
+size_t pa_stream_writable_size(const pa_stream *p);
/** Return the number of bytes that may be read using pa_stream_peek().
*
* (size_t) -1 is returned on error. */
-size_t pa_stream_readable_size(pa_stream *p);
+size_t pa_stream_readable_size(const pa_stream *p);
/** Drain a playback stream. Use this for notification when the
* playback buffer is empty after playing all the audio in the buffer.
commit 029d935137030bb577e70b98adaff4074e3af7b9
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 05:54:02 2018 +0100
stream: pa_stream_is_[suspended|corked]: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index 52b10cd4..e32dd008 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -2740,7 +2740,7 @@ const char *pa_stream_get_device_name(const pa_stream *s) {
return s->device_name;
}
-int pa_stream_is_suspended(pa_stream *s) {
+int pa_stream_is_suspended(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
@@ -2752,7 +2752,7 @@ int pa_stream_is_suspended(pa_stream *s) {
return s->suspended;
}
-int pa_stream_is_corked(pa_stream *s) {
+int pa_stream_is_corked(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 08adc993..89a8924c 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -380,11 +380,11 @@ const char *pa_stream_get_device_name(const pa_stream *s);
* been suspended. This will return 0 if not, and a negative value on
* error. This function will return with -PA_ERR_NOTSUPPORTED when the
* server is older than 0.9.8. \since 0.9.8 */
-int pa_stream_is_suspended(pa_stream *s);
+int pa_stream_is_suspended(const pa_stream *s);
/** Return 1 if the this stream has been corked. This will return 0 if
* not, and a negative value on error. \since 0.9.11 */
-int pa_stream_is_corked(pa_stream *s);
+int pa_stream_is_corked(const pa_stream *s);
/** Connect the stream to a sink. It is strongly recommended to pass
* NULL in both \a dev and \a volume and to set neither
commit 4f94219eb85fb63c1daafe4340ae5366055ab504
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 05:51:30 2018 +0100
stream: pa_stream_get_device_[index|name]: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index bb2115ac..52b10cd4 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -2714,7 +2714,7 @@ pa_operation* pa_stream_set_buffer_attr(pa_stream *s, const pa_buffer_attr *attr
return o;
}
-uint32_t pa_stream_get_device_index(pa_stream *s) {
+uint32_t pa_stream_get_device_index(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
@@ -2727,7 +2727,7 @@ uint32_t pa_stream_get_device_index(pa_stream *s) {
return s->device_index;
}
-const char *pa_stream_get_device_name(pa_stream *s) {
+const char *pa_stream_get_device_name(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 63289141..08adc993 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -363,7 +363,7 @@ uint32_t pa_stream_get_index(const pa_stream *s);
* it is recommended to use pa_stream_set_moved_callback() to be notified
* about this. This function will return with PA_INVALID_INDEX on failure,
* including the being server older than 0.9.8. \since 0.9.8 */
-uint32_t pa_stream_get_device_index(pa_stream *s);
+uint32_t pa_stream_get_device_index(const pa_stream *s);
/** Return the name of the sink or source this stream is connected to
* in the server. This is useful with the introspection
@@ -374,7 +374,7 @@ uint32_t pa_stream_get_device_index(pa_stream *s);
* it is recommended to use pa_stream_set_moved_callback() to be notified
* about this. This function will fail when the server is older than
* 0.9.8. \since 0.9.8 */
-const char *pa_stream_get_device_name(pa_stream *s);
+const char *pa_stream_get_device_name(const pa_stream *s);
/** Return 1 if the sink or source this stream is connected to has
* been suspended. This will return 0 if not, and a negative value on
commit e366a8fb50e224b38fef8f577012afb35eca453f
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 05:49:23 2018 +0100
stream: pa_stream_get_index: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index d1ccfbca..bb2115ac 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -345,7 +345,7 @@ pa_context* pa_stream_get_context(const pa_stream *s) {
return s->context;
}
-uint32_t pa_stream_get_index(pa_stream *s) {
+uint32_t pa_stream_get_index(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 4c52c310..63289141 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -352,7 +352,7 @@ pa_context* pa_stream_get_context(const pa_stream *p);
* introspection functions such as pa_context_get_sink_input_info()
* or pa_context_get_source_output_info(). This returns PA_INVALID_INDEX
* on failure. */
-uint32_t pa_stream_get_index(pa_stream *s);
+uint32_t pa_stream_get_index(const pa_stream *s);
/** Return the index of the sink or source this stream is connected to
* in the server. This is useful with the introspection
commit d922ef1ed9a71530d63f0730e4ad8e8b95096775
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 05:45:36 2018 +0100
stream: pa_stream_get_context: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index 3df52592..d1ccfbca 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -338,7 +338,7 @@ pa_stream_state_t pa_stream_get_state(const pa_stream *s) {
return s->state;
}
-pa_context* pa_stream_get_context(pa_stream *s) {
+pa_context* pa_stream_get_context(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 2a904b94..4c52c310 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -345,7 +345,7 @@ pa_stream *pa_stream_ref(pa_stream *s);
pa_stream_state_t pa_stream_get_state(const pa_stream *p);
/** Return the context this stream is attached to. */
-pa_context* pa_stream_get_context(pa_stream *p);
+pa_context* pa_stream_get_context(const pa_stream *p);
/** Return the sink input resp.\ source output index this stream is
* identified in the server with. This is useful with the
commit 4b7d92724d18731d8ca69f2303724ea995734c01
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 05:43:01 2018 +0100
stream: pa_stream_get_state: constify
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index ee95757f..3df52592 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -331,7 +331,7 @@ pa_stream* pa_stream_ref(pa_stream *s) {
return s;
}
-pa_stream_state_t pa_stream_get_state(pa_stream *s) {
+pa_stream_state_t pa_stream_get_state(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);
diff --git a/src/pulse/stream.h b/src/pulse/stream.h
index 4efba934..2a904b94 100644
--- a/src/pulse/stream.h
+++ b/src/pulse/stream.h
@@ -342,7 +342,7 @@ void pa_stream_unref(pa_stream *s);
pa_stream *pa_stream_ref(pa_stream *s);
/** Return the current state of the stream. */
-pa_stream_state_t pa_stream_get_state(pa_stream *p);
+pa_stream_state_t pa_stream_get_state(const pa_stream *p);
/** Return the context this stream is attached to. */
pa_context* pa_stream_get_context(pa_stream *p);
commit 805d7603ffcbad8134b788ad1558989ee6a3aa75
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 06:14:29 2018 +0100
operation: pa_operation_get_state: constify
diff --git a/src/pulse/operation.c b/src/pulse/operation.c
index 3ed3143f..61adf69b 100644
--- a/src/pulse/operation.c
+++ b/src/pulse/operation.c
@@ -129,7 +129,7 @@ void pa_operation_done(pa_operation *o) {
operation_set_state(o, PA_OPERATION_DONE);
}
-pa_operation_state_t pa_operation_get_state(pa_operation *o) {
+pa_operation_state_t pa_operation_get_state(const pa_operation *o) {
pa_assert(o);
pa_assert(PA_REFCNT_VALUE(o) >= 1);
diff --git a/src/pulse/operation.h b/src/pulse/operation.h
index edd7d76e..302b85ba 100644
--- a/src/pulse/operation.h
+++ b/src/pulse/operation.h
@@ -49,7 +49,7 @@ void pa_operation_unref(pa_operation *o);
void pa_operation_cancel(pa_operation *o);
/** Return the current status of the operation */
-pa_operation_state_t pa_operation_get_state(pa_operation *o);
+pa_operation_state_t pa_operation_get_state(const pa_operation *o);
/** Set the callback function that is called when the operation state
* changes. Usually this is not necessary, since the functions that
commit efc2f7ea4c015fa3aa226d28e41c84b3d27e872e
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 06:39:11 2018 +0100
mainloop: constify get_retval functions
diff --git a/src/pulse/mainloop.c b/src/pulse/mainloop.c
index aeb55d94..7d6a99c9 100644
--- a/src/pulse/mainloop.c
+++ b/src/pulse/mainloop.c
@@ -910,7 +910,7 @@ quit:
return -2;
}
-int pa_mainloop_get_retval(pa_mainloop *m) {
+int pa_mainloop_get_retval(const pa_mainloop *m) {
pa_assert(m);
return m->retval;
diff --git a/src/pulse/mainloop.h b/src/pulse/mainloop.h
index a7df8a19..5f8c6267 100644
--- a/src/pulse/mainloop.h
+++ b/src/pulse/mainloop.h
@@ -96,7 +96,7 @@ a negative value on error. On success returns the number of source dispatched. *
int pa_mainloop_dispatch(pa_mainloop *m);
/** Return the return value as specified with the main loop's quit() routine. */
-int pa_mainloop_get_retval(pa_mainloop *m);
+int pa_mainloop_get_retval(const pa_mainloop *m);
/** Run a single iteration of the main loop. This is a convenience function
for pa_mainloop_prepare(), pa_mainloop_poll() and pa_mainloop_dispatch().
diff --git a/src/pulse/thread-mainloop.c b/src/pulse/thread-mainloop.c
index 993b7ba0..0205a4a7 100644
--- a/src/pulse/thread-mainloop.c
+++ b/src/pulse/thread-mainloop.c
@@ -231,7 +231,7 @@ void pa_threaded_mainloop_accept(pa_threaded_mainloop *m) {
pa_cond_signal(m->accept_cond, 0);
}
-int pa_threaded_mainloop_get_retval(pa_threaded_mainloop *m) {
+int pa_threaded_mainloop_get_retval(const pa_threaded_mainloop *m) {
pa_assert(m);
return pa_mainloop_get_retval(m->real_mainloop);
diff --git a/src/pulse/thread-mainloop.h b/src/pulse/thread-mainloop.h
index 79c91eff..4dbc2d20 100644
--- a/src/pulse/thread-mainloop.h
+++ b/src/pulse/thread-mainloop.h
@@ -299,7 +299,7 @@ void pa_threaded_mainloop_accept(pa_threaded_mainloop *m);
/** Return the return value as specified with the main loop's
* pa_mainloop_quit() routine. */
-int pa_threaded_mainloop_get_retval(pa_threaded_mainloop *m);
+int pa_threaded_mainloop_get_retval(const pa_threaded_mainloop *m);
/** Return the main loop abstraction layer vtable for this main loop.
* There is no need to free this object as it is owned by the loop
commit 2c86dae27cae8d59a193e15e1ae0e8ca6cacb275
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 06:24:17 2018 +0100
context: pa_context_get_state: constify
diff --git a/src/pulse/context.c b/src/pulse/context.c
index a63265df..adbeb153 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1058,7 +1058,7 @@ void pa_context_disconnect(pa_context *c) {
pa_context_set_state(c, PA_CONTEXT_TERMINATED);
}
-pa_context_state_t pa_context_get_state(pa_context *c) {
+pa_context_state_t pa_context_get_state(const pa_context *c) {
pa_assert(c);
pa_assert(PA_REFCNT_VALUE(c) >= 1);
diff --git a/src/pulse/context.h b/src/pulse/context.h
index d79661f5..7a38ff23 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -196,7 +196,7 @@ int pa_context_errno(pa_context *c);
int pa_context_is_pending(pa_context *c);
/** Return the current context status */
-pa_context_state_t pa_context_get_state(pa_context *c);
+pa_context_state_t pa_context_get_state(const pa_context *c);
/** Connect the context to the specified server. If server is NULL,
* connect to the default server. This routine may but will not always
commit 05cb942d53385a30ef6002b1e0e0adaa32534e3d
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Mon May 28 01:12:39 2018 +0100
context: pa_context_get_protocol_version: constify
diff --git a/src/pulse/context.c b/src/pulse/context.c
index 8722f350..a63265df 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1331,7 +1331,7 @@ const char* pa_context_get_server(pa_context *c) {
return c->server;
}
-uint32_t pa_context_get_protocol_version(pa_context *c) {
+uint32_t pa_context_get_protocol_version(const pa_context *c) {
return PA_PROTOCOL_VERSION;
}
diff --git a/src/pulse/context.h b/src/pulse/context.h
index 9d4c926e..d79661f5 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -236,7 +236,7 @@ pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_su
const char* pa_context_get_server(pa_context *c);
/** Return the protocol version of the library. */
-uint32_t pa_context_get_protocol_version(pa_context *c);
+uint32_t pa_context_get_protocol_version(const pa_context *c);
/** Return the protocol version of the connected server.
* Returns PA_INVALID_INDEX on error. */
commit 31a2784741deb10d06478d8a3296243fe800b159
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sat May 26 23:50:55 2018 +0100
context: pa_context_new_with_proplist: constify proplist param
diff --git a/src/pulse/context.c b/src/pulse/context.c
index e7695009..8722f350 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -125,7 +125,7 @@ static void reset_callbacks(pa_context *c) {
c->ext_stream_restore.userdata = NULL;
}
-pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *name, pa_proplist *p) {
+pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *name, const pa_proplist *p) {
pa_context *c;
pa_mem_type_t type;
diff --git a/src/pulse/context.h b/src/pulse/context.h
index 2cb0776e..9d4c926e 100644
--- a/src/pulse/context.h
+++ b/src/pulse/context.h
@@ -174,7 +174,7 @@ pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name);
/** Instantiate a new connection context with an abstract mainloop API
* and an application name, and specify the initial client property
* list. \since 0.9.11 */
-pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *name, pa_proplist *proplist);
+pa_context *pa_context_new_with_proplist(pa_mainloop_api *mainloop, const char *name, const pa_proplist *proplist);
/** Decrease the reference counter of the context by one */
void pa_context_unref(pa_context *c);
commit 4ad0a4a471fbe23a6dce727951280b8bb9574a17
Author: Lyndon Brown <jnqnfe at gmail.com>
Date: Sun May 27 07:56:11 2018 +0100
volume: pa_cvolume_get_position: constify
diff --git a/src/pulse/volume.c b/src/pulse/volume.c
index ead54152..fc6ac8d2 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 2503c3f6..fe44b0bb 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
More information about the pulseaudio-commits
mailing list