Tritium: MixerImpl: optimize mix_down() a little.
authorGabriel M. Beddingfield <gabrbedd@gmail.com>
Mon, 12 Dec 2011 06:19:43 +0000 (00:19 -0600)
committerGabriel M. Beddingfield <gabrbedd@gmail.com>
Mon, 12 Dec 2011 06:19:43 +0000 (00:19 -0600)
commit878939c3fcddff12407620db69b2f592354d46c9
tree1edd2a8ceb24c8dd4ea063a45b11dc01aac7f0de
parent3d5cfc39e4e96725813589f819353f9029f36490
Tritium: MixerImpl: optimize mix_down() a little.

1. Don't clip output.  Let the hardware worry about that.

2. Don't call the constructor for T<>::shared_ptr on every iteration.
   Pull the variable declaration out of the loop.
src/Tritium/src/MixerImpl.cpp
src/Tritium/src/MixerImplPrivate.hpp