github google/oboe 1.11.2

one hour ago

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 as shared_ptr streams (#2446)
  • Releasing the last reference to an open AAudio stream now closes it and waits for running callbacks. Call stop() and close() first. Do not release the last reference while holding a lock that your callbacks also take (#2446)
  • SpatializationBehavior::Auto is now the default. This lets Android XR spatialize audio from 2D panel apps. SpatializationBehavior::Never is still available on API 32+ AAudio (#2421)
  • Added ambisonic (ACN) channel mask support for Android API 38: ChannelAcnMask, AudioStreamBuilder::setChannelAcnMask(), AudioStream::getChannelAcnMask() and OboeExtensions::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_mask intent parameters (#2454)
  • Added ro.product.first_api_level and ro.vendor.api_level to the device report (#2430)
  • Fixed build errors with newer NDKs: LOGV/LOGD macro redefinition and missing <math.h> includes (#2431, #2445)

Tests

  • Added stream lifecycle tests and ambisonic channel mask tests (#2446, #2454)
  • Fixed unit test failures on Android 17 (#2422)

Don't miss a new oboe release

NewReleases is sending notifications on new releases.