Files
soundcraft/crates/playback
ashokram-si cf28b85a0d Recording: a take that fills its file goes on in a new one and lands whole (#888)
The recorder wrote each take into one float WAV with no length cap, but a
file is read back whole only up to 1 G samples (the decode and import
limit). A longer take stayed on disk and no clip was placed.

Each take file now holds at most take_file_samples(): the import limit,
and when the input runs at another rate than the session, no more than
the rate conversion keeps per channel. A take that fills its file goes on
in the next one, named by take_part() (Vox_01.wav, Vox_01-2.wav, ...).
Placing a recording reads a track's files in order as one take: its clips
are cut where one file ends and the next begins, loop passes and punch
ranges run across the files, and a file nothing is kept from isn't added.
Crash recovery finds and repairs every file of an unfinished take. A next
file that can't be made stops the take with a disk error, as a failed
write does, and keeps everything written up to there.
2026-10-30 17:18:09 +05:30
..