Audio Libraries Considered Challenging | Tesselode Labs
Published May 16, 2022
| Updated May 17, 2022
Reading time: 16 minutes
Table of Contents
Why Audio is Hard
Communicating Between Threads
Shared ownership via Mutexes
Shared ownership via atomics
Use more ringbuffers
Storing Resources on the Audio Thread
Solution 1: Arenas
Why it takes too long
Solution 2: IndexMap
Solution 3: Revisiting arenas
Conclusion
I develop a game audio library called
Kira. Here's some of the hard parts I've
figured out. If you decide to make an audio library for some rea...
Read more at tesselode.github.io