Browse Source

Update core_automation_events.c

Ray 1 year ago
parent
commit
98fcbe3fe2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      examples/core/core_automation_events.c

+ 2 - 1
examples/core/core_automation_events.c

@@ -241,7 +241,8 @@ int main(void)
         
         
         if (eventPlaying)
         if (eventPlaying)
         {
         {
-            if (playFrameCounter >= aelist.events[currentPlayFrame].frame)
+            // NOTE: Multiple events could be executed in a single frame
+            while (playFrameCounter == aelist.events[currentPlayFrame].frame)
             {
             {
                 PlayAutomationEvent(aelist.events[currentPlayFrame]);
                 PlayAutomationEvent(aelist.events[currentPlayFrame]);
                 currentPlayFrame++;
                 currentPlayFrame++;