Work on Voice state

This commit is contained in:
Jack Andersen
2016-05-11 11:30:45 -10:00
parent 1102d50f8f
commit e510a0ad84
11 changed files with 610 additions and 264 deletions

View File

@@ -56,9 +56,7 @@ void Engine::pumpEngine()
{
int maxVid = -1;
for (Voice& vox : m_activeVoices)
{
maxVid = std::max(maxVid, vox.vid());
}
maxVid = std::max(maxVid, vox.maxVid());
m_nextVid = maxVid + 1;
}
@@ -188,7 +186,7 @@ Voice* Engine::fxStart(int sfxId, float vol, float pan, Submix* smx)
Voice* ret = _allocateVoice(*grp, 32000.0, true, false, smx);
ret->setVolume(vol);
ret->setPanning(pan);
ret->setPan(pan);
return ret;
}