diff options
author | Chun-Min Chang <[email protected]> | 2017-07-07 11:22:39 +0800 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2017-07-07 15:46:56 +1200 |
commit | 3cd65d2e7be3524ce6d4c86eed12a82f221dae9c (patch) | |
tree | 6f272f88cec1e376cee4b3f93fe4da1e6355bed6 /include | |
parent | 0070c117faf97a889785364af0a67a2509734770 (diff) | |
download | cubeb-3cd65d2e7be3524ce6d4c86eed12a82f221dae9c.tar.gz cubeb-3cd65d2e7be3524ce6d4c86eed12a82f221dae9c.zip |
Add an API to reset audio stream to the default device
Diffstat (limited to 'include')
-rw-r--r-- | include/cubeb/cubeb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h index c5c4a94..d06e74f 100644 --- a/include/cubeb/cubeb.h +++ b/include/cubeb/cubeb.h @@ -534,6 +534,14 @@ CUBEB_EXPORT int cubeb_stream_start(cubeb_stream * stream); @retval CUBEB_ERROR */ CUBEB_EXPORT int cubeb_stream_stop(cubeb_stream * stream); +/** Reset stream to the default device. + @param stream + @retval CUBEB_OK + @retval CUBEB_ERROR_INVALID_PARAMETER + @retval CUBEB_ERROR_NOT_SUPPORTED + @retval CUBEB_ERROR */ +CUBEB_EXPORT int cubeb_stream_reset_default_device(cubeb_stream * stream); + /** Get the current stream playback position. @param stream @param position Playback position in frames. |