Lightningbeam/daw-backend/src/audio
Skyler Lehmkuhl 70ac0cde00 Fix audio export hang when a video's audio is shorter than the video
Offline export blocks each streaming source until decoded frames are
available. For a video whose audio track ends before the video (or a
container like WebM/Opus with no exact stream duration), the tail chunks
wait for frames that never arrive — the 10s safety valve fires per chunk,
so the export appears to hang indefinitely.

Add a `finished` flag to ReadAheadBuffer, set when the disk reader hits
EOF (cleared on seek). The export-mode wait now breaks immediately once
the source is finished and the requested frames aren't present, rendering
silence for the missing tail instead of timing out chunk-by-chunk. Only
the export path reads the flag, so playback is unaffected.
2026-06-23 19:06:21 -04:00
..
node_graph Massive tempo refactor - make beats canonical time rep and allow them to be non constant 2026-04-02 10:26:01 -04:00
automation.rs Phase 5: fix broken unit tests; cargo test --lib green again 2026-06-19 16:45:23 -04:00
bpm_detector.rs add BPM detection 2025-11-02 09:53:34 -05:00
buffer_pool.rs Use buffer pool 2025-10-18 23:45:27 -04:00
clip.rs Massive tempo refactor - make beats canonical time rep and allow them to be non constant 2026-04-02 10:26:01 -04:00
disk_reader.rs Fix audio export hang when a video's audio is shorter than the video 2026-06-23 19:06:21 -04:00
engine.rs Pack video into .beam and stream frames + audio from the blob 2026-06-22 09:17:10 -04:00
export.rs Phase 2: bound video frame cache + stream the export mux 2026-06-17 14:30:32 -04:00
metronome.rs Add count-in 2026-03-20 20:51:50 -04:00
midi.rs Massive tempo refactor - make beats canonical time rep and allow them to be non constant 2026-04-02 10:26:01 -04:00
midi_pool.rs Massive tempo refactor - make beats canonical time rep and allow them to be non constant 2026-04-02 10:26:01 -04:00
mod.rs Stream audio & video from .beam container; waveform LOD pyramid + persistence 2026-06-17 13:52:38 -04:00
pool.rs Fix audio export hang when a video's audio is shorter than the video 2026-06-23 19:06:21 -04:00
project.rs Fix .beam save quirks: real sample rate, drop dead fields 2026-06-21 23:21:48 -04:00
recording.rs Massive tempo refactor - make beats canonical time rep and allow them to be non constant 2026-04-02 10:26:01 -04:00
sample_loader.rs Add automation inputs for audio graphs 2026-03-18 11:25:48 -04:00
track.rs Make beats canonical representation rather than seconds 2026-06-02 13:06:36 -04:00
waveform_cache.rs Clean up build warnings 2026-02-14 11:07:32 -05:00
waveform_pyramid.rs Stream audio & video from .beam container; waveform LOD pyramid + persistence 2026-06-17 13:52:38 -04:00