Skip to content

Commit

Permalink
[manager] OboeAudioDevice::stopCallback() should clean up stream.
Browse files Browse the repository at this point in the history
This seems to fix the instancing issue at #199 (comment)
  • Loading branch information
atsushieno committed Apr 27, 2024
1 parent e27bec4 commit 21aaee8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ void aap::OboeAudioDevice::stopCallback() {
oboe::Result result = stream->stop();
if (result != oboe::Result::OK)
throw std::runtime_error(std::string{"Failed to stop Oboe stream: "} + oboe::convertToText(result));
stream = nullptr;
}

oboe::DataCallbackResult
Expand Down

0 comments on commit 21aaee8

Please sign in to comment.