izzyreal / mpc

mpc2000xl emulator static library
GNU General Public License v3.0
72 stars 8 forks source link

DiskRecorder writes to file from the audio thread #218

Closed izzyreal closed 10 months ago

izzyreal commented 10 months ago

This is bad practice. The audio thread should write to a thread-safe FIFO buffer, and a worker thread should write it to disk.

In this ticket let's also deal with the case where the destination file already exists and is in use.