Some samples are not written to the log file, resulting in shorter recordings. This is likely due to calls to flush and fsync during the logging, which seems to be too slow on HDD with low writing speeds (problem did not occur with SSD drives).
Solution: move flush and fsync calls to stop_recording.
Some samples are not written to the log file, resulting in shorter recordings. This is likely due to calls to
flush
andfsync
during the logging, which seems to be too slow on HDD with low writing speeds (problem did not occur with SSD drives).Solution: move
flush
andfsync
calls tostop_recording
.