Use separate mixing loops for the dry path and wet paths
commit2e70b82eaab5e8eef4723ab0d99fa3960e5519d7
authorChris Robinson <chris.kcat@gmail.com>
Sat, 25 Sep 2010 01:29:49 +0000 (24 18:29 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Sat, 25 Sep 2010 01:29:49 +0000 (24 18:29 -0700)
treeb8e5ded8afaef6f096b34488638f0d084d566e6c
parent117ed52091a2a24d912c51a8a1c3a97cc5f4d4d5
Use separate mixing loops for the dry path and wet paths
This will increase CPU use a bit for sources that use auxiliary sends
(particularly with the cosine resampler), but it makes it more scalable when
adding more sends per source. Additionally, it will improve performance of
sources that don't use auxiliary sends.

The cosine resampler can probably be improved by using a lookup table instead
of calling cos() as there are 14 bits of fractional precision, so a 16384-
element float array would cover it all. This can also be reduced to a half or
quarter size if the precision loss is found to be acceptable.
Alc/mixer.c