Hello,

> OK, so in the future we need a different algorithm for desktop speakers.
> Something like "find out stereo sound that, when convolved with the
> HRIR and summed for each ear, produces the same result as the original
> 5.1 sound convolved with the appropriate HRIR", but at high-enough
> frequencies only.

That is possible with crosstalk cancellation. It requires knowledge of the 
transfer functions from each speaker to each ear, though. I have no idea how 
well it would work if we just estimate the transfer functions but there seem 
to be commercial products that do so.

> As for the complexity - yes, it can be reduced substantially, because
> you use the simplest possible implementation of convolution with a
> rather long filter. Please try to use FFT-based convolution and
> benchmark.
> 
> Or, even better, try to approximate one of the available HRIRs with a
> combination of an IIR filter of some low (4-6) order and a
> fixed-per-channel delay, and hard-code that. As there is no scientific
> way of designing IIR filters with arbitrary impulse response yet, the
> simplest possible way of doing such approximation is to autogenerate
> random IIR filters of a given order, compare their response with the
> desired one, and leave the whole thing running for a day or so until it
> finds something suitable.

Sure, my code is O(n^2) while FFT is O(n log n) but it is somewhat simpler and 
has less overhead.
I will try your proposed alternatives when I find the time to do so (exams are 
coming up).

Regards,

Ole

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to