Skip to content

Releases

1.11.2

Choose a tag to compare

@robertwu1 robertwu1 released this 23 Nov 21:17
a36d098

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)

1.11.0

Choose a tag to compare

@robertwu1 robertwu1 released this 15 Sep 18:59
b115f47

API changes

  • Added support for routing changed callback (AAudioStream_routingChangedCallback) (#2348)
  • Added a collection to track AAudio stream lifetimes and ensure AudioStream and FilterAudioStream are alive when firing data and error callbacks (#2320, #2324, #2325, #2354)
  • Re-open stream when MMAP is disabled (#2338)
  • Made ResultWithValue copy-assignable (#2346)
  • Fixed AAudio builder requested device ID during stream open (#2353)
  • Fire data callback whenever there is enough data (#2391)
  • Clarified documentation for reportActualDuration and getSessionId (#2355)
  • Fixed compile errors with NDK 30 (#2417)

OboeTester

  • Added Frequency and Dual Frequency tests with presets, instructions, enforcement mode, and worker thread FFT optimization (#2378, #2383, #2386, #2388)
  • Enhanced Tap-to-Tone with configurable tone generators, noise-filtering average filter, signal visualization, and crash fixes (#2360, #2361, #2362, #2368)
  • Added chirp and multi Data Paths tests (#2326)
  • Added audio focus support (#2282)
  • Added volume report in Recorder (#2120, #2337)
  • Added SDK_INT_FULL (#2394)
  • Fixed buffer overrun in fine latency measurement (#2396)
  • Fixed TestDataPathsActivity jitter calculation (#2349)
  • Fixed audio silence when display is turned off and stopped stream sniffer when screen is off (#2309, #2340)
  • Prevented activity teardown on configuration changes (#2382)
  • Used callbacks for showCommDeviceStatus and moved setMode inside CommunicationDeviceView (#2318, #2374)
  • Used shared stream for cold start latency test (#2358, #2370)
  • Updated Gradle to 9.3.1 and updated apps to Android 17 (#2400, #2407)

Samples

  • Added new OboeDJ sample app (#2359, #2365)
  • Added flushFromFrame and swiping support to PowerPlay (#2315)
  • Added buffer size slider for offload mode, progress slider, playback speed/pitch control, local playback, audio effects (Equalizer, BassBoost, Loudness), and intent-based automation to PowerPlay (#2332, #2341, #2345, #2363, #2372, #2380)
  • Added default effects and new icon to fxlab (#2310, #2311)
  • Created shared module for common sample assets and migrated samples from Data Binding to View Binding (#2328, #2367)
  • Updated samples to Android 17 (#2407)

1.10.0

Choose a tag to compare

@robertwu1 robertwu1 released this 15 Sep 18:59
a81bb9f

API changes

  • Added new AAudio API to query MMAP policy (#2167)
  • Added PCM offload support. This saves battery by ~30% when used (#2165)
  • Added compressed format support like MP3 and AAC_LC (#2188)
  • Added support for AAudioStream_getDeviceIds. Now you query if multiple output devices are connected (#2184)
  • Added support for notifyWorkloadIncrease/Spike/Reset. These will help when you have workload increases (#2214)
  • Added flushFromFrame API. This helps with flushing extra data with PCM offload (#2271)
  • Added support for playback parameters for offload streams. This will allow apps to do speed/pitch shifts (#2279)
  • Added a compile flag for not including flowgraph. This reduces the Oboe binary size by ~50% when used (#2302)
  • Added support for partial data callback. This is useful as offload streams can have extremely large buffers (#2304)

OboeTester

  • Made several improvements in the CPU Load Test (#2140, #2156, #2250)
  • Added mixer attributes to device report (#2169)
  • Added CPU info to device report (#2212)
  • Fixed Auto Glitch test for non-MMAP devices (#2155)
  • Fixed issue where large channel counts would result in overflows when downmixing (#2172)
  • Added Spatialization behavior APIs (#2173)
  • Added support for MP3 playback (#2189)
  • Save all WAV files in Data Paths test to help with debugging (#2207)
  • Added 2 new tests for testing audio workloads (#2199)
  • Added package name and attribution tag (#2206)
  • Fixed issue where output effects didn't work as expected (#2233)
  • Added noise pulse for Tap to Tone (#2249)
  • Test for both MMAP and MMAP shared in automated tests (#2253)
  • Updated to Android 36 (#2257)
  • Enabled background operation and foreground service by default (#2264)
  • Added a way to simulate volume key presses (#2270)
  • Added a test for reverse JNI (#2266)
  • Fixed timeouts by using AlarmManager (#2290)
  • Fixed UI issue where spinners show up even when it leaves the view (#2308)

Samples

  • Added new PowerPlay sample to showcase how to use PCM Offload to save battery by ~30% (#2197)
  • Updated to Android 36 (#2257)

1.9.3

Choose a tag to compare

@robertwu1 robertwu1 released this 17 Dec 21:36
b15f5e3

API changes

  • Added setting shared pointers to FullDuplexStream and deprecated raw pointers. (#2034)
  • Fixed a deadlock in OpenSL ES when stopping a stream. (#2061)
  • Added AudioClock so apps can easily get the current timestamp and sleep until a given timestamp or for a certain amount of time. (#2080)
  • Added compile flag for statically linking OpenSL ES (#2112, #2115)
  • Added the ability report its workload to audio streams. This will help with glitches when you suddenly increase the performance load. (#2116)
  • Updated to 16kb page sizes. This is needed for Android 15 as some devices only support 16kb page sizes. (#2126, #2084, #2086)

OboeTester

  • Added a Rapid Cycle test to help with testing stream stops and starts in succession. (#2042, #2060)
  • Made some improvements in DataPaths tests. (#2045, #2047, #2069, #2073, #2074, #2083, #2088)
  • Fixed an issue where action bars were set to light. (#2048)
  • Fixed an issue where some tests could switch to landscape mode when all tests should be in portrait mode. (#2049)
  • Added ro.build.date to MainActivity. (#2053)
  • Fixed an issue where sounds could get too high pitched when there were too many channels. (#2067)
  • Added ForegroundService so OboeTester can record in the background. (#2071, #2076, #2100, #2106)
  • Added the actual device id to the UI after a stream is created. (#2078)
  • Added AEC, AGC, and NoiseSupressor effects. (#2091)
  • Added bluetooth and telephony features to device report. (#2094)
  • Added Intents to CPU Load test. This will allow developers to automate testing this test. (#2104)

Samples

  • Run LiveEffect in background with ForegroundService to showcase FullDuplexStream. (#2063, #2070, #2097)

1.9.0

Choose a tag to compare

@robertwu1 robertwu1 released this 25 Jun 18:43
03242e9

API changes

  • Fixed a problem with isMMapEnabled() not returning correctly when setMMapEnabled() is never called. (#1968)
  • Fixed an out-of-bounds read in the sample rate converter. (#2009)
  • Removed OpenSL ES direct links as it's deprecated. (#2014)
  • Enable sample rate conversion by default to reduce latency. (#2024)
  • Fixes a problem with crashes on disconnect. (#2037)

OboeTester

  • Let OboeTester channel count and mask override each other. (#1973)
  • Added MediaCodecInfo in device report. (#1998)
  • Fixed a buffer calculation in FormatConversionBox. (#2012)
  • Use AppCompatSpinner and AppCompatActivity. (#2019)
  • Improved OboeTester Disconnect (#1964), Data Paths (#1963, #1978, #2013), Glitch (#1963) tests

Samples

  • Support 24 and 32 bit in wav file parser for DrumThumper (#1993)

1.8.1

Choose a tag to compare

@robertwu1 robertwu1 released this 13 Feb 23:47
86165b8
  • Fixes a bug where the wrong stream type was used for OpenSL Ringtone streams. (#1946)
  • Added I8_24 to Oboe flowgraph. Note this is not used anywhere in Oboe currently. (#1943)
  • Improved OboeTester glitch (#1956), latency (#1940), and disconnect (#1933, #1961) tests.

1.8.0

Choose a tag to compare

@robertwu1 robertwu1 released this 12 Oct 21:49

API changes

  • Deprecated AudioStreamBuilder.setCallback. Please use setDataCallback and setErrorCallback
  • Added getHardwareChannelCount, getHardwareSampleRate, and getHardwareFormat to audio streams. They are supported in AAudio in API 34+. (#1744)
  • Added privacy sensitive mode APIs. They are supported in AAudio in API 30+. (#1751)
  • Added release to audio streams. They are supported in AAudio in API 30+. (#1755)
  • Added IEC61937 support. They are supported in AAudio in API 34+. (#1758)
  • Added allow capture policy APIs. They are supported in AAudio in API 29+. (#1768)
  • Added APIs to declare spatialization behavior. They are supported in AAudio in API 32+. (#1776)
  • Added ADPF support in Oboe. (#1788)
  • Added full duplex stream to Oboe. (#1920)

Bug fixes

  • Fixed an issue where Oboe was waiting for more frames than could be possibly available (#1702, Fixes #1701)
  • AAudio could sometimes return a positive number as an error code. Oboe now changes these to ErrorInternal. (#1711)
  • Fixed an issue where the resampler was causing sound the be muffled. (#1813, Fixes #1673, #1625)
  • Fixed an issue where some parameters were not copied in FilterAudioStream. (#1898, Fixes #1897)

OboeTester

  • Routing crash test (#1760)
  • CPU load test (#1788)
  • Cold start latency test (#1887)
  • Various bug fixes and improvements

1.7.0

Choose a tag to compare

@robertwu1 robertwu1 released this 15 Dec 01:23
8740d0f

API changes

  • Channel mask support is supported for AAudio in API 32 and above (#1548)
  • Add methods setDelayBeforeCloseMillis and getDelayBeforeCloseMillis to audio streams (#1593)
  • Add OboeExtensions (#1602). These will allow you to query for, enable, and disable MMAP support.
  • Add shared_ptr support for setDataCallback and setErrorCallback (#1626). The equivalent for raw pointers is now deprecated. This helps avoid crashes by preventing the callback from being deleted while the error callback is still active.

OpenSL ES bug fixes

  • Fixed an issue with OpenSL ES queuing only one callback buffer (#1245, Fixes #1165)
  • Fixed an issue with OpenSL ES volume not working if Usage was Unspecified (#1537, Fixes #1536)
  • Fixed an issue with OpenSL ES where resources were not closed if open failed (#1550, Fixes #1550)
  • Fixed an issue with OpenSL ES not handling processBufferCallback() from multiple threads correctly (#1570, #1621, Fixes #1567)
  • Fixed an issue with OpenSL ES returning 0 from getBufferSizeInFrames() if callbacks are not used (#1582, Fixes #1581)
  • Fixed an issue with OpenSL ES not handling large buffers gracefully (#1601, Fixes #744, #952)
  • Fixed an issue with OpenSL ES input streams not checking buffer depths (#1621, Fixes #1431)
  • Fixed an issue with OpenSL ES returning ErrorInternal for invalid formats (#1634)

Other bug fixes

  • Fixed an issue with AAudio segfaults if closed while reading or writing (#1497, Fixes #1484)
  • Fixed resampler glitches for some configurations (#1624, Fixes #1622)

Workarounds

  • Add Quirk to disable MMAP on Exynos SDM8150 (#1381, Fixes #1381)
  • Add Quirks for Vivo devices (#1590, Fixes #201)
  • Check for workaround flag for automatic INT16 to FLOAT conversion when FLOAT is not supported (#1590, Fixes #1589)

Code samples

Non core changes

  • Many OboeTester updates
  • API reference docs are automatically updated after API changes
  • Add RISC-V support to StablizedCallback.h (#1586)
  • Updated Oboe to support API 33 (#1618)

1.6.1

Choose a tag to compare

@dturner dturner released this 22 Jul 19:22
855ea84

API changes

  • Add methods setPackageName and setAttributionTag (#1332). These methods allow you to pass your package name and/or a tag when creating an audio stream. Android will output these strings in system logs to make it easier to attribute system calls back to your application.

Bug fixes and workarounds

  • Fixed an issue where an incorrect audio device ID could be used if sample rate conversion is also used (#1310)
  • flowgraph: Start linear ramps at the initial volume set (#1318)
  • fix unused-parameter warnings (#1331)
  • Add workaround for Samsung Galaxy S9 recording silence sometimes. Fixes #1110
  • Improve callback stop handling on pre-R devices (#1351, Fixes #1230)
  • Remove include of ndk-version.h (#1359, #Fixes #1358)

Binary changes

  • The Oboe libraries are now built with debug information to assist with debugging. This information is stripped automatically by Android Studio in release builds so there's no APK bloat. Fixes #1301.

Non core changes

  • Many updates to OboeTester
  • Code samples now use Float to Int16 conversion on API <21
  • Github repo default branch renamed from master to main

1.6.0

Choose a tag to compare

@dturner dturner released this 18 May 12:38
  • Add support for 24 and 32 bit sample formats. Support in AAudio will be added to Android 12. This was added to support some codecs that generate 24-bit output. We still recommend using Float format for most high-resolution use cases. (8041b38)
  • Add support for float output streams on pre-L devices (#1267)
  • Fix calculation related to sample rate conversion (#1256, thanks to @flamme and @chrismanchester)
  • Check for nullptr in FilterAudioStream::getTimestamp() (#1171, Fixes #1166)
  • Android TV improvements (a65df53, thanks to @ftsui)
  • Oboe now requires C++17 to be built from source (binaries available on https://maven.google.com/)
  • Add quirk for S20 input (Fixes #892)
  • Add quirk for Exynos850 devices (2c06e95)
  • Remove call to dlclose, avoids possible segfault (2ca99f6)
  • Fix possible, but very unlikely, race on close (#1200)