Skip to content

Fix/ios voice processing - #1330

Closed
mdydek wants to merge 3 commits into
feat/android-communication-sessionfrom
fix/ios-voice-processing
Closed

mdydek wants to merge 3 commits into
feat/android-communication-sessionfrom
fix/ios-voice-processing

Conversation

@mdydek

@mdydek mdydek commented Oct 5, 2026

Copy link
Copy Markdown
Member

Direct continuation of the work in #1316

⚠️ Breaking changes ⚠️

Introduced changes

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage
  • Added support for web
  • Updated old arch android spec file

@mdydek
mdydek added this pull request to stack #1325 October 5, 2026 10:59
@mdydek mdydek added fix Code changes specifically addressing and resolving a bug ios Native iOS implementation, CoreAudio/AVFoundation bindings, or iOS-specific issues labels Oct 5, 2026
@mdydek
mdydek force-pushed the fix/ios-voice-processing branch from 7cbda79 to a9745cb Compare October 5, 2026 11:30
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

WPT non-regression comparison

PASS — no regressions · 0 improved section(s) · overall 3427 → 3427 (0)

Unchanged sections (28)
Spec section Base pass Head pass Delta
Processing model 1 1 0
Other 56 56 0
AnalyserNode 138 138 0
AudioBuffer 140 140 0
AudioBufferSourceNode 220 220 0
AudioContext 58 58 0
AudioNode 261 261 0
AudioParam 680 680 0
BiquadFilterNode 275 275 0
ChannelMergerNode 30 30 0
ChannelSplitterNode 7 7 0
ConstantSourceNode 64 64 0
ConvolverNode 178 178 0
DelayNode 127 127 0
DestinationNode 0 0 0
DynamicsCompressorNode 4 4 0
GainNode 15 15 0
IIRFilterNode 87 87 0
MediaElementAudioSourceNode 0 0 0
MediaStreamAudioDestinationNode 1 1 0
MediaStreamAudioSourceNode 0 0 0
OfflineAudioContext 35 35 0
OscillatorNode 104 104 0
PannerNode 727 727 0
PeriodicWave 33 33 0
ScriptProcessorNode 0 0 0
StereoPannerNode 104 104 0
WaveShaperNode 82 82 0

Baseline: ea3304863b531c10764c82596444f697b8eb2e04 · Candidate: 7087acb7319df05c084ffc3bf1c5efe2511c1488

Workflow run · this comment is updated on every push.

@mdydek
mdydek force-pushed the fix/ios-voice-processing branch from a9745cb to fa7aa74 Compare October 6, 2026 16:18

[self rebuildAudioEngineAndResumeIfNeeded];
if (![self rebuildAudioEngineAndResumeIfNeeded]) {
self.state = AudioEngineState::AudioEngineStatePaused;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.state = AudioEngineState::AudioEngineStatePaused;
self.state = AudioEngineState::AudioEngineStateIdle;

return;
}

if (![self hasInputConnectionFormatChanged]) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure that it is only condition? what if receorder was left without a sink by a failed rebuild?

self.state = AudioEngineState::AudioEngineStateIdle;
[self notifyConfigurationChanges];
return;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldnt we notify outpus if shouldResume is true as well?


[self rebuildAudioEngine];
if (![self rebuildAudioEngine]) {
_isRebuildingAudioEngine = NO;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same path as in onInterruptionEnd so shouldnt we call both notify methods?

@mdydek
mdydek force-pushed the fix/ios-voice-processing branch from fa7aa74 to 7087acb Compare October 9, 2026 07:39
@github-actions github-actions Bot added the conflicts This PR has conflicts with the base branch. label Oct 14, 2026
@mdydek

mdydek commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

the better rework, which would contain this fix will be done in #1317

@mdydek mdydek closed this Oct 14, 2026
An error occurred while trying to automatically change base from feat/android-communication-session to main October 20, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts This PR has conflicts with the base branch. fix Code changes specifically addressing and resolving a bug ios Native iOS implementation, CoreAudio/AVFoundation bindings, or iOS-specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants