Skip to content

Commit

Permalink
Remove sleep limit for growing file and realtime processing in apps
Browse files Browse the repository at this point in the history
  • Loading branch information
philipnbbc committed Aug 19, 2024
1 parent 13dc2b5 commit 8dd6bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/AppUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ void bmx::rt_sleep(float rt_factor, uint64_t start_tick, Rational sample_rate, i
uint64_t target_tick = start_tick + (uint64_t)(1000 * num_samples *
sample_rate.denominator / (rt_factor * sample_rate.numerator));
uint64_t delta_tick = delta_tick_count(tick, target_tick);
if (delta_tick < 10000) // don't sleep if target_tick < tick or there are bogus tick values
if (delta_tick)
sleep_msec(delta_tick);
}

0 comments on commit 8dd6bb1

Please sign in to comment.