Tritium: Effects::getPluginList() was constantly scanning directories.
authorGabriel M. Beddingfield <gabrbedd@gmail.com>
Mon, 12 Dec 2011 05:26:50 +0000 (23:26 -0600)
committerGabriel M. Beddingfield <gabrbedd@gmail.com>
Mon, 12 Dec 2011 05:30:18 +0000 (23:30 -0600)
commit3d5cfc39e4e96725813589f819353f9029f36490
tree0c6f119093e277c3171cc2442cd2e97ba22d1478
parent7c5c76a5179f69dda1500dbe697908f75aedfa0f
Tritium: Effects::getPluginList() was constantly scanning directories.

When the user has no plugins installed, Effects::getPluginList() will
constantly search folders for them.  This is a problem because it's
being called from MixerImpl::mix_down() (which expects that it is
receiving cached data).

Adding a class variable to indicate that the info has been cached.
Also returning a reference instead of a copy.
src/Tritium/Tritium/fx/Effects.hpp
src/Tritium/src/fx/Effects.cpp