186{
188
190 co_return;
191 }
192
194 uint32_t cycles_executed = 0;
195
196 while ((max_cycles == 0 || cycles_executed < max_cycles) && (
m_continuous_execution || cycles_executed < max_cycles)) {
197
198 if (promise.should_terminate) {
199 break;
200 }
201
203
206
208 continue;
209 }
210
212 continue;
213 }
214
216
217 for (uint32_t iter = 0; iter < op_iterations; ++iter) {
218
221
223
225 co_await BufferDelay { 1 };
226 } else if (samples_per_operation > 0) {
227 co_await SampleDelay { samples_per_operation };
228 }
229 }
230 }
231
233
235
237 cycles_executed++;
238 }
239
242}
@ READY
Data ready for processing.
@ CONSUMED
Data has been processed.
@ EMPTY
No data available.
uint32_t operation_iterations(const BufferOperation &op) const
void process_operation(BufferOperation &op, uint64_t cycle)
Vruta::DelayContext m_capture_timing
void flow_through(size_t index, uint64_t cycle)
std::vector< BufferOperation > m_operations
std::vector< DataState > m_data_states
bool m_continuous_execution
std::function< void()> m_on_complete
bool operation_due(const BufferOperation &op) const
std::vector< std::shared_ptr< Vruta::Routine > > dispatch_cycle_branches(bool frame_rate)
GetPromiseBase< Vruta::audio_promise > GetAudioPromise
Audio domain promise accessor.
@ BUFFER_BASED
Buffer-cycle delay (audio hardware boundary)