Skip to content

fix: call voice activity listeners with the JVM's floating point state - #533

Closed
devopvoid wants to merge 1 commit into
mainfrom
fix/voice-activity-fp-state
Closed

devopvoid wants to merge 1 commit into
mainfrom
fix/voice-activity-fp-state

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

AudioProcessing flushes denormals to zero while it hands its audio to the capture tap, and the tap calls the Java listeners from within that. So Java ran with FTZ and DAZ set, and on Windows -Xcheck:jni ended the process in LocalAudioTests, which fails the jni-check (windows_x86_64) job added in #530.

VoiceActivityListener::Update now clears those bits around the call into Java, on x86 and ARM, and restores them for WebRTC afterwards.

AudioProcessing flushes denormals to zero while it hands its audio to the
capture tap, so Java ran with FTZ and DAZ set. -Xcheck:jni ended the
process on Windows; now the listener call undoes it.
@devopvoid devopvoid closed this Nov 4, 2026
@devopvoid
devopvoid deleted the fix/voice-activity-fp-state branch November 4, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant