To prevent a race condition, close the output thread before assigning the new audio format.
Attach a file by drag & drop or click to upload