4 ms·
An audio engine in C++?
by zebraflask 9y ago
An audio engine in C++?
- tomduncalf 9y agoYep - C++ is generally used for audio programming because you can write code that is real time safe for use on the audio thread (low latencies mean you might have 5ms to fill a buffer with fairly intense calculations required for a modern synth, so any waiting for locks, memory allocation, GC pauses etc. can be disastrous and lead to audible glitches). On top of that there’s a huge amount of code and libraries for audio stuff written in C++ - we used JUCE which provides a lot of helpful abstractions and cross platform compatibility.
- zebraflask 9y agoIs there? What would that huge amount of code meant to you?
- tomduncalf 9y agoIt means you can build on top of other people’s proven abstractions rather than writing your own buggy ones ;)