Skip to content
  • Christopher Snowhill's avatar
    virtual-surround-sink: Use FFTW3 instead of naive approach · 00bd8e1e
    Christopher Snowhill authored and PulseAudio Marge Bot's avatar PulseAudio Marge Bot committed
    This replaces the original virtual surround sink with a total
    rewrite, aiming to implement any number of hrir use cases,
    including asymmetrical impulses as two separate left and right
    output files. It uses FFTW3 FFT convolution, using the overlap-
    save method, with full rewind support. It operates in steps
    equal to the resampled length of the hrir, and overlaps input
    blocks in increments equal to the size of the FFT block. If
    using paired hrirs, it requires matched sample spec and sample
    rates and channel maps. For best results, the input files should
    have speaker maps, rather than expecting the sample loader to
    auto detect the mapping.
    
    Part-of: <pulseaudio/pulseaudio!240>
    00bd8e1e