playSequence method
For internal use only.
Implementation
void playSequence(int? id) {
if (!sequenceIdMap.containsKey(id)) return;
final sequence = sequenceIdMap[id!]!;
if (sequence.isPlaying || sequence.getIsOver()) return;
final shouldPlayEngine = !_getIsPlaying();
sequence.isPlaying = true;
sequence.engineStartFrame = LEAD_FRAMES +
NativeBridge.getPosition() -
sequence.beatToFrames(sequence.pauseBeat);
_syncAllBuffers();
if (shouldPlayEngine) {
_playEngine();
}
}