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")
1 file changed
tree: 835400397fe2c4087ccaefd142d13512ad553086
  1. .ci_tools/
  2. .github/
  3. apps/
  4. docs/
  5. include/
  6. prefab/
  7. samples/
  8. src/
  9. tests/
  10. .gitignore
  11. .travis.yml
  12. AUTHORS
  13. build_all_android.sh
  14. CMakeLists.txt
  15. CONTRIBUTING
  16. CONTRIBUTING.md
  17. CONTRIBUTORS
  18. Doxyfile
  19. LICENSE
  20. MODULE_LICENSE_APACHE2
  21. NOTICE
  22. prefab_build.sh
  23. README
  24. README.md
README.md

Oboe Build Status

Introduction to Oboe video

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).

Features

  • Compatible with API 16 onwards - runs on 99% of Android devices
  • Chooses the audio API (OpenSL ES on API 16+ or AAudio on API 27+) which will give the best audio performance on the target Android device
  • Automatic latency tuning
  • Modern C++ allowing you to write clean, elegant code
  • Workarounds for some known issues
  • Used by popular apps and frameworks

Requirements

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.

API Documentation

Testing

Videos

Sample code and apps

Third party sample code

Contributing

We would love to receive your pull requests. Before we can though, please read the contributing guidelines.

Version history

View the releases page.

License

LICENSE