Better HN
topnewbestaskshowjobs
Log inSign up

audio_dev

13 karma · joined Sep 22, 2019 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

One common solution is to have another thread continuously prepare a bunch of empty buffers in advance, the audio thread just uses one of them, and after that is filled another thread writes it to disk. No locking is required, and no malloccing/disk IO happens on the audio thread.