kmatheussen / jack_capture

A program for recording soundfiles with jack
http://www.notam02.no/arkiv/src/
Other
75 stars 28 forks source link

File corrupted when filesystem capacity exceeded #50

Open riban-bw opened 2 years ago

riban-bw commented 2 years ago

if the filesystem to which jack_capture is recording fills up, jack_capture reports an error (continually) but does not close the file which results in the file being unusable. This is at least true of wav files where the chunk size needs to be written hence the file is there and large but corrupted.

It would be advantageous if the detection of file system capacity exceeded was handled gracefully, ideally with the file being fixed up. Of course this may be challenging if another process is writing to file system in that the filesystem may become unwritable but it would be good for jack_capture to try to handle this situation. That way your recording becomes truncated but still usable.