MCPcopy Create free account
hub / github.com/RunanywhereAI/RCLI / rcli_stop_processing

Function rcli_stop_processing

src/api/rcli_api.cpp:2218–2234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2216}
2217
2218void rcli_stop_processing(RCLIHandle handle) {
2219 if (!handle) return;
2220 auto* engine = static_cast<RCLIEngine*>(handle);
2221 if (engine->initialized) {
2222 engine->pipeline.llm().cancel();
2223 if (engine->pipeline.using_metalrt())
2224 engine->pipeline.metalrt_llm().cancel();
2225 }
2226 // Cancel streaming TTS pipeline
2227 engine->streaming_cancelled.store(true, std::memory_order_release);
2228 // Clear ring buffer to stop audio immediately
2229 auto* rb = engine->pipeline.playback_ring_buffer();
2230 if (rb) rb->clear();
2231
2232 rcli_stop_speaking(handle);
2233 rcli_stop_listening(handle);
2234}
2235
2236void rcli_clear_history(RCLIHandle handle) {
2237 if (!handle) return;

Callers 1

runMethod · 0.85

Calls 6

rcli_stop_speakingFunction · 0.85
rcli_stop_listeningFunction · 0.85
using_metalrtMethod · 0.80
playback_ring_bufferMethod · 0.80
clearMethod · 0.80
cancelMethod · 0.45

Tested by

no test coverage detected