Stop the Oboe recording stream when recording is stopped
Hopefully Oboe will retain any unread samples and let them be read.
This commit is contained in:
parent
63f5240db2
commit
b8a4ebd594
@ -321,9 +321,9 @@ void OboeCapture::start()
|
||||
|
||||
void OboeCapture::stop()
|
||||
{
|
||||
const oboe::Result result{mStream->pause()};
|
||||
const oboe::Result result{mStream->stop()};
|
||||
if(result != oboe::Result::OK)
|
||||
throw al::backend_exception{al::backend_error::DeviceError, "Failed to pause stream: %s",
|
||||
throw al::backend_exception{al::backend_error::DeviceError, "Failed to stop stream: %s",
|
||||
oboe::convertToText(result)};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user