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
}
h
uint32_t h
Definition
InkPress.cpp:28
MayaFlux::Vruta::DelayContext::MULTIPLE
@ MULTIPLE
Armed on both sample and frame clocks; first to arrive resumes (CrossRoutine)
MayaFlux::Kriya::MultiRateDelay::frames_to_wait
uint64_t frames_to_wait
Definition
DelayAwaiters.hpp:160
MayaFlux::Kriya::MultiRateDelay::samples_to_wait
uint64_t samples_to_wait
Definition
DelayAwaiters.hpp:159
References
h
, and
MayaFlux::Vruta::MULTIPLE
.
MayaFlux
Kriya
MultiRateDelay
Generated by
1.9.8