diff options
author | Chris Robinson <[email protected]> | 2021-02-02 19:12:56 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-02-02 19:12:56 -0800 |
commit | b8a4ebd5943e554c7b9f28874f6308d3ff402e15 (patch) | |
tree | ca065f6c0c7cc8b0e374f38f89db3aa333e78567 /alc/backends | |
parent | 63f5240db253f0ea942a79da3a5f54e7338df493 (diff) |
Stop the Oboe recording stream when recording is stopped
Hopefully Oboe will retain any unread samples and let them be read.
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/oboe.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/oboe.cpp b/alc/backends/oboe.cpp index 131d8b2d..d84cea8e 100644 --- a/alc/backends/oboe.cpp +++ b/alc/backends/oboe.cpp @@ -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)}; } |