Skip to content

Do we need call stream_->stop if stream_->requestStart failed #1450

Answered by philburk
xzhan96 asked this question in Q&A
Discussion options

You must be logged in to vote

You don't need to stop it because it failed to start.
But since the open succeeded you should close it.

You should always close() streams as soon as you are done using them so that other apps can have access to the audio resources.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by philburk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants