Skip to content

Commit 63a5891

Browse files
committed
Revert change in initialization of transfers
Regression added in 98fed99. The error occurred only occasionally.
1 parent fd850e6 commit 63a5891

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/engine.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,10 @@ run_audio (void *data)
750750
engine->frames_per_transfer);
751751
}
752752

753+
// These calls are needed to initialize the Overbridge side before the host side.
754+
prepare_cycle_in_audio (engine);
755+
prepare_cycle_out_audio (engine);
756+
753757
// status == OW_ENGINE_STATUS_STOP
754758

755759
// This can NOT use ow_engine_set_status as the transition is not allowed from OW_ENGINE_STATUS_STOP.
@@ -784,9 +788,6 @@ run_audio (void *data)
784788
engine->status = OW_ENGINE_STATUS_BOOT;
785789
pthread_spin_unlock (&engine->lock);
786790

787-
prepare_cycle_in_audio (engine);
788-
prepare_cycle_out_audio (engine);
789-
790791
while (1)
791792
{
792793
// status == OW_ENGINE_STATUS_BOOT || status == OW_ENGINE_STATUS_CLEAR

0 commit comments

Comments
 (0)