Hacker News new | ask | show | jobs
by holy_city 2478 days ago
>applies an ambisonic convoluted reverberation impulse response to an audio stream

Yikes. If you're doing naive convolution that's O(n^2) in real time.

Try reading up on partitioned convolution techniques via FFT. The current state of the art in FFTs is using FFTW (extremely fast, GPL licensed but a bit tricky to get a commercial license if that is unacceptable) or IPP on x86 (closed source, but works and is fast).

I'd also try looking at Facebook's Two Big Ears code for ambisonic rendering via HRTFs:

https://github.com/facebookincubator/Audio360