Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Native audio stability regressions
run: |
clang++ -std=c++17 -pthread -fsanitize=address,undefined -fno-omit-frame-pointer ios/tests/AudioStabilityTests.cpp -o /tmp/audio-stability-tests
/tmp/audio-stability-tests

- name: Setup
uses: ./.github/actions/setup
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## Unreleased

### Bug Fixes

- **ios:** Prime the Simulator audio route before cold engine startup and reject unusable output formats.
- **ios:** Adapt variable-size host callbacks to fixed DSP blocks, preserving feedback history and preventing buffer overruns. Carry-over can add up to one runtime block of latency.
- **ios:** Serialize runtime event collection with graph updates and route replacement; deliver events after unlocking so listeners can safely re-enter.
- **ios:** Keep `getAudioInfo` status-only: before initialization it returns zero channels/sample rate and false readiness/running flags without starting audio.

## 0.4.1-beta.2

### Features
Expand Down
3 changes: 3 additions & 0 deletions ios/Elementary.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#import "../cpp/vendor/elementary/runtime/elem/Runtime.h"
#import <AVFoundation/AVFoundation.h>
#include <mutex>
#include "FixedBlockRenderer.h"

#ifdef RCT_NEW_ARCH_ENABLED
#import <RNElementarySpec/RNElementarySpec.h>
Expand All @@ -12,6 +13,7 @@
/// and the JS thread (applyInstructions / setProperty). The audio callback
/// uses try_lock — outputs silence on contention rather than blocking.
std::mutex _runtimeMutex;
FixedBlockRenderer _fixedBlockRenderer;
int _listenerCount;
BOOL _hasEventListeners;
}
Expand All @@ -23,6 +25,7 @@

@interface Elementary : RCTEventEmitter <RCTBridgeModule> {
std::mutex _runtimeMutex;
FixedBlockRenderer _fixedBlockRenderer;
int _listenerCount;
BOOL _hasEventListeners;
}
Expand Down
Loading
Loading