dragonflight/services/capture/deltacast-bridge
ZGaetano e9e883d06e fix(deltacast-bridge): flush queued audio backlog to live edge on reader attach
The ~2.5s of leading silence at record start was the VHD audio slot QUEUE: while
the recorder is idle (no FIFO reader), the bridge blocks on open(O_WRONLY) but the
board keeps buffering audio slots. When the record ffmpeg attaches, the bridge
streamed that stale backlog first — heard as leading silence and pushing audio
out of alignment with the live video.

On each reader attach, drain slots that lock FAST (already-queued backlog) and
stop at the first lock that takes ~a frame period (= waiting on a live slot), so
the reader is handed the live edge, A/V aligned.
2026-06-04 04:54:32 +00:00
..
CMakeLists.txt feat(framecache): phase 2 — deltacast-bridge writes to shm ring 2026-06-03 15:13:20 +00:00
fc_writer.c debug(fc_writer): add trace logs for GET slots path 2026-06-04 01:13:19 +00:00
fc_writer.h feat(framecache): phase 2 — deltacast-bridge writes to shm ring 2026-06-03 15:13:20 +00:00
main.c fix(deltacast-bridge): flush queued audio backlog to live edge on reader attach 2026-06-04 04:54:32 +00:00