Skip to content

fix: wide planar audio, audio timestamp gaps and vanished audio devices - #428

Merged
devopvoid merged 2 commits into
mainfrom
fix/audio-review-findings
Oct 24, 2026
Merged

devopvoid merged 2 commits into
mainfrom
fix/audio-review-findings

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • AudioDecoder reads input planes from extended_data; planar audio with more than eight channels read past frame->data and crashed in swresample.
  • Audio follows its timestamps: gaps are filled with silence, overlaps skipped, jumps beyond 10 s move the time mapping. Missing audio no longer shifts later audio ahead of video.
  • setPlayoutDevice/setRecordingDevice throw IllegalArgumentException for a device the module no longer lists instead of selecting device 0; Devices.useMicrophone/useSpeaker pass that on without the stop-and-retry. Modules that name no devices (Linux) keep using their default.

A descriptor the module no longer lists selected device 0, so an unplugged
microphone was silently replaced by another one. Modules that name no
devices (Linux) keep using their default.
swr_convert got frame->data, which holds eight planes, so planar audio of
more channels read past it and crashed. Audio timestamps now drive the
output: gaps are filled with silence and overlaps skipped, so audio no
longer drifts ahead of video after missing audio.
@devopvoid
devopvoid merged commit 3980061 into main Oct 24, 2026
24 of 25 checks passed
@devopvoid
devopvoid deleted the fix/audio-review-findings branch October 24, 2026 00:57
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