A patch release focused on recording and playback state. On iOS, pausing an AudioRecorder no longer stops audio that is already playing, and on Android a paused recorder releases the microphone. A paused AudioBufferQueueSourceNode plays again after resume(), and notification transport buttons work on older Android versions.
Features
- Keep the Android audio callback thread on a single CPU core and re-pin it when the system moves it, which cuts the underruns heard as crackling (#1410)
Fixes
iOS
- Pausing an
AudioRecordersuspends only the microphone input, so audio that is already playing keeps playing. Previously it paused the whole engine (#1424) - When the audio engine is rebuilt after a route change or an interruption, the recorder learns about the new input format before the engine starts, and an engine start that fails without an error is reported as a failure instead of a running engine (#1408)
Android
AudioRecorder.pause()stops the capture stream, so the microphone is released while paused, andstop()closes it (#1413)- Notification transport buttons work on older Android versions, which deliver them as
MEDIA_BUTTONintents, and the playback notification looks right there too (#1426, closes #1273)
All platforms
- A paused
AudioBufferQueueSourceNodeplays again afterresume(). Scheduled sources now have a real paused state, and a stop time set while paused still applies (#1436) disconnect()could remove the wrong connection or crash when the audio graph was compacted before the audio thread handled it (#1406)decodeAudioDatacopies its input before decoding in the background, so changing theArrayBufferright after the call no longer affects the result (#1432)
Build
- Android builds on Windows find
mkdir,rmandunzipwhen Gradle is started from PowerShell or cmd (#1425, closes #1385) - Prebuilt binary downloads retry up to three times, so a short GitHub outage no longer fails the build (#1421)
Other changes
- Fix the iOS native test suite (#1270)