void TownsEuphonyDriver::timerCallback(int timerId) { switch (timerId) { case 0: updatePulseCount(); while (_pulseCount > 0) { --_pulseCount; updateTimeStampBase(); if (!_playing) continue; updateEventBuffer(); updateParser(); updateCheckEot(); } break; default: break; } }
void EuphonyPlayer::timerCallback(int timerId) { switch (timerId) { case 0: updatePulseCounters(); while (_playerUpdatesLeft) { --_playerUpdatesLeft; updateBeat(); if (!_playing) continue; updateHangingNotes(); updateParser(); updateCheckEot(); } break; default: break; } }