Sample_Buffer:Save_As & File Flushing

Hey, can you check whether sample_buffer:save_as actually flushes and closes the file at right time? Might be totally wild goose chase, but maybe it’s possible, that the saved file is not totally complete when the save_as returns?

“save_as” closes the file. this should be all that’s needed in this case…

The odd thing is that I can not reproduce the same bug using same files and same parameters from command line (the files are all OK), so the renoise must add something into equasion.