MCPcopy Create free account
hub / github.com/csound/csound / insert

Function insert

Engine/insert.c:294–306  ·  view source on GitHub ↗

insert an instr copy into active list */ then run an init pass */

Source from the content-addressed store, hash-verified

292/* insert an instr copy into active list */
293/* then run an init pass */
294int insert(CSOUND *csound, int insno, EVTBLK *newevtp) {
295
296 if(csound->oparms->realtime) {
297 unsigned long wp = csound->alloc_queue_wp;
298 csound->alloc_queue[wp].insno = insno;
299 csound->alloc_queue[wp].blk = *newevtp;
300 csound->alloc_queue[wp].type = 0;
301 csound->alloc_queue_wp = wp + 1 < MAX_ALLOC_QUEUE ? wp + 1 : 0;
302 ATOMIC_INCR(csound->alloc_queue_items);
303 return 0;
304 }
305 else return insert_event(csound, insno, newevtp);
306}
307
308int insert_event(CSOUND *csound, int insno, EVTBLK *newevtp)
309{

Callers 1

process_score_eventFunction · 0.85

Calls 1

insert_eventFunction · 0.85

Tested by

no test coverage detected