MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ await_suspend()

void MayaFlux::Kriya::MultiRateDelay::await_suspend ( std::coroutine_handle< Vruta::cross_promise h)
noexcept

Definition at line 33 of file DelayAwaiters.cpp.

34{
35 auto& promise = h.promise();
36 promise.next_sample.fetch_add(samples_to_wait, std::memory_order_relaxed);
37 promise.next_frame.fetch_add(frames_to_wait, std::memory_order_relaxed);
38 promise.sample_delay_amount = samples_to_wait;
39 promise.frame_delay_amount = frames_to_wait;
40 promise.active_delay_context.store(
41 Vruta::DelayContext::MULTIPLE, std::memory_order_release);
42}
uint32_t h
Definition InkPress.cpp:28
@ MULTIPLE
Armed on both sample and frame clocks; first to arrive resumes (CrossRoutine)

References h, and MayaFlux::Vruta::MULTIPLE.