commit | 979dd39ed2ea8d3c8b23e5053befc21b2ae484dd | [log] [tgz] |
---|---|---|
author | Tom Hebb <tch@fb.com> | Fri Sep 25 21:46:51 2020 -0700 |
committer | Don Turner <dturner@users.noreply.github.com> | Wed Oct 14 17:12:27 2020 +0100 |
tree | 835400397fe2c4087ccaefd142d13512ad553086 | |
parent | df57777d178ba3d378517b9f79e61b4cf6f62682 [diff] |
tests: Don't ignore perfMode in TestStreamWaitState helper Unlike the openStream() function in other test classes, the one here takes a performance mode to open the stream with, and tests exist which are identical save for the mode they specify. However, it appears that the openStream() implementation has never[1] actually paid attention to the performance mode, meaning all tests run with the default one. Fix this by invoking mBuilder.setPerformanceMode(). This fix does not appear to reveal any bugs. All tests in this file still pass for me on Android 10 after the change. [1] Since it was initially introduced in commit 95131751b47b ("oboe tests: test new waitForStateChange behavior")
Oboe is a C++ library which makes it easy to build high-performance audio apps on Android. It was created primarily to allow developers to target a simplified API that works across multiple API levels back to API level 16 (Jelly Bean).
To build Oboe you'll need a compiler which supports C++14 and the Android header files. The easiest way to obtain these is by downloading the Android NDK r17 or above. It can be installed using Android Studio's SDK manager, or via direct download.
We would love to receive your pull requests. Before we can though, please read the contributing guidelines.
View the releases page.