AIO error codes, only write wave files on failures