OboeTester: Read mAudioState under mAudioStateLock in isClosingOrClosed() (#2459)
isClosingOrClosed() read the @GuardedBy("mAudioStateLock") field
mAudioState without holding the lock, which Error Prone's GuardedBy check
reports as an error in the Android build.
Take the lock in the public isClosingOrClosed() and add a @GuardedBy
isClosingOrClosedLocked() for closeAudioLocked(), which already holds it.
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).
We would love to receive your pull requests. Before we can though, please read the contributing guidelines.
View the releases page.