Skip to content

Commit

Permalink
Busy Mode: Start and end the sound frame in busy loop
Browse files Browse the repository at this point in the history
Like in the main loop, the sound frame is started and ended in the
busy mode loop. This ensures that audio drivers are updated always.
  • Loading branch information
skyjake committed Jul 13, 2012
1 parent 638866c commit efd10a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doomsday/engine/portable/src/busymode.cpp
Expand Up @@ -403,6 +403,9 @@ static void BusyMode_Loop(void)

Garbage_Recycle();

// Make sure the audio system gets regularly updated.
S_StartFrame();

// Post and discard all input events.
DD_ProcessEvents(0);
DD_ProcessSharpEvents(0);
Expand All @@ -415,7 +418,6 @@ static void BusyMode_Loop(void)
GL_ProcessDeferredTasks(15);
}

// Make sure the audio system gets regularly updated.
S_EndFrame();

// We accumulate time in the busy loop so that the animation of a task
Expand Down

0 comments on commit efd10a0

Please sign in to comment.