7 if constexpr (std::is_same_v<promise_handle, Vruta::audio_promise>
8 || std::is_same_v<promise_handle, Vruta::complex_promise>) {
9 if constexpr (
requires { h.promise().next_sample; }) {
10 h.promise().next_sample += samples_to_wait;
14 if constexpr (
requires { h.promise().domain_mismatch_error(
"",
""); }) {
15 h.promise().domain_mismatch_error(
"SampleDelay",
16 "This awaitable is not compatible with the current coroutine promise type.");
23 if constexpr (std::is_same_v<promise_handle, Vruta::graphics_promise>
24 || std::is_same_v<promise_handle, Vruta::complex_promise>) {
25 if constexpr (
requires { h.promise().next_frame; }) {
26 h.promise().next_frame += frames_to_wait;
30 if constexpr (
requires { h.promise().domain_mismatch_error(
"",
""); }) {
31 h.promise().domain_mismatch_error(
"FrameDelay",
32 "This awaitable is not compatible with the current coroutine promise type.");