I can successfully record and write files but every now and then (around 10% of the times) it fails and the file ends up with 0 seconds length. It doesn't throw an error anywhere, just the file is empty.
I'm happy to help and even submit a PR but I'm a bit stuck and I don't really know where to move on.