Several CPU usage optimizations

This commit is contained in:
Jack Andersen
2016-05-21 22:35:55 -10:00
parent fbafa397fe
commit 654eccf82d
10 changed files with 65623 additions and 21 deletions

View File

@@ -23,8 +23,8 @@ Engine::~Engine()
vox->_destroy();
}
Engine::Engine(IBackendVoiceAllocator& backend)
: m_backend(backend)
Engine::Engine(IBackendVoiceAllocator& backend, AmplitudeMode ampMode)
: m_backend(backend), m_ampMode(ampMode)
{
backend.register5MsCallback(std::bind(&Engine::_5MsCallback, this, std::placeholders::_1));
m_midiReader = backend.allocateMIDIReader(*this);