API changes
- Fixed a crash (SIGABRT / use-after-free) that could happen in data callbacks on Oboe 1.11.0 (#2444, #2446)
- Removed the global lock from the AAudio data callback path that was added in 1.11.0. Data callbacks are lock-free again, like in 1.10.0 (#2446)
- Streams opened with the raw-pointer
openStream(AudioStream**)now get the same callback lifetime protection asshared_ptrstreams (#2446) - Releasing the last reference to an open AAudio stream now closes it and waits for running callbacks. Call
stop()andclose()first. Do not release the last reference while holding a lock that your callbacks also take (#2446) SpatializationBehavior::Autois now the default. This lets Android XR spatialize audio from 2D panel apps.SpatializationBehavior::Neveris still available on API 32+ AAudio (#2421)- Added ambisonic (ACN) channel mask support for Android API 38:
ChannelAcnMask,AudioStreamBuilder::setChannelAcnMask(),AudioStream::getChannelAcnMask()andOboeExtensions::isChannelAcnMaskSupported()(#2454) - Added
OboeExtensions::isRoutingChangedCallbackSupported()(#2440) - Added a virtual destructor to
AudioStreamRoutingCallback. This changes its vtable, so rebuild any code that subclasses it against the 1.11.2 headers (#2440)
OboeTester
- Handle rerouting in the Error Callback test. Starting in Android 17, legacy-path streams may be rerouted instead of disconnected (#2440)
- Added ACN mask support with an "ACN Mask" spinner and
in_channel_acn_mask/out_channel_acn_maskintent parameters (#2454) - Added
ro.product.first_api_levelandro.vendor.api_levelto the device report (#2430) - Fixed build errors with newer NDKs:
LOGV/LOGDmacro redefinition and missing<math.h>includes (#2431, #2445)