aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorAndreas Pehrson <[email protected]>2023-11-21 11:21:40 +0100
committerAndreas Pehrson <[email protected]>2024-01-15 15:25:40 +0100
commitdd8a91f98260d2c6171a7cf8a73f8fd4bdbb5337 (patch)
treec0ccb7ad405da6d59a3023279f0ab646ba1fa565 /include
parent5a2df9b0aaa5352c168b7aa2a29d80f8a0e3880b (diff)
downloadcubeb-dd8a91f98260d2c6171a7cf8a73f8fd4bdbb5337.tar.gz
cubeb-dd8a91f98260d2c6171a7cf8a73f8fd4bdbb5337.zip
Add an API for muting the input side of a stream
Diffstat (limited to 'include')
-rw-r--r--include/cubeb/cubeb.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h
index 5c66d58..17ead45 100644
--- a/include/cubeb/cubeb.h
+++ b/include/cubeb/cubeb.h
@@ -665,6 +665,18 @@ CUBEB_EXPORT int
cubeb_stream_get_current_device(cubeb_stream * stm,
cubeb_device ** const device);
+/** Set input mute state for this stream. Some platforms notify the user when an
+ application is accessing audio input. When all inputs are muted they can
+ prove to the user that the application is not actively capturing any input.
+ @param stream the stream for which to set input mute state
+ @param muted whether the input should mute or not
+ @retval CUBEB_OK
+ @retval CUBEB_ERROR_INVALID_PARAMETER if this stream does not have an input
+ device
+ @retval CUBEB_ERROR_NOT_SUPPORTED */
+CUBEB_EXPORT int
+cubeb_stream_set_input_mute(cubeb_stream * stream, int mute);
+
/** Set what input processing features to enable for this stream.
@param stream the stream for which to set input processing features.
@param params what input processing features to use