Sets sched ahead time to 0 within the block for the current thread

with_real_time  

Sets sched ahead time to 0 within the block for the current thread. Shorthand for with_sched_ahead_time 0.

See with_sched_ahead_time for a version of this function which allows you to set the schedule ahead time to any arbitrary value. Note, with_real_time will override any value set with set_sched_ahead_time! for the current thread.

Introduced in v3.0

Example

# Example 1

with_real_time do
  play 70 
end

play 70 



 
# Sound will happen without a scheduling delay.
 
 
# Sound will happen with the default latency (0.5s).