Nevermind that didn't work actually
Actual fix for short files
try waiting for audio to initialize
...and put the initialization back at first buffer write