aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorBrendan Early <[email protected]>2020-09-28 16:55:10 -0500
committerMatthew Gregan <[email protected]>2020-10-07 11:27:54 +1300
commit2e842a01f743a734e3720f817c22224af0a80298 (patch)
treeeee874571abb2024244670c6ae798da3df681dc9 /include
parent082ba33d120d484c4d5e2404dbda69c1f7e6751b (diff)
downloadcubeb-2e842a01f743a734e3720f817c22224af0a80298.tar.gz
cubeb-2e842a01f743a734e3720f817c22224af0a80298.zip
Add method to change stream name
Diffstat (limited to 'include')
-rw-r--r--include/cubeb/cubeb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h
index f8abfce..43fff5d 100644
--- a/include/cubeb/cubeb.h
+++ b/include/cubeb/cubeb.h
@@ -584,6 +584,14 @@ CUBEB_EXPORT int cubeb_stream_get_input_latency(cubeb_stream * stream, uint32_t
@retval CUBEB_ERROR_NOT_SUPPORTED */
CUBEB_EXPORT int cubeb_stream_set_volume(cubeb_stream * stream, float volume);
+/** Change a stream's name.
+ @param stream the stream for which to set the name.
+ @param stream_name the new name for the stream
+ @retval CUBEB_OK
+ @retval CUBEB_ERROR_INVALID_PARAMETER if any pointer is invalid
+ @retval CUBEB_ERROR_NOT_SUPPORTED */
+CUBEB_EXPORT int cubeb_stream_set_name(cubeb_stream * stream, char const * stream_name);
+
/** Get the current output device for this stream.
@param stm the stream for which to query the current output device
@param device a pointer in which the current output device will be stored.