Four tracks, four writers, four files. Media is written as fragmented chunks that rotate every 300 seconds, and a chunk is listed in the index before it closes, so a crash leaves recovery an explicit pointer at the incomplete tail. The index is checkpointed every 2 seconds.
Recovery reassembles by copying sample data verbatim rather than re-encoding it, so a recovered recording is not a generation older than the one you made.