insert an instr copy into active list */ then run an init pass */
| 292 | /* insert an instr copy into active list */ |
| 293 | /* then run an init pass */ |
| 294 | int 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 | |
| 308 | int insert_event(CSOUND *csound, int insno, EVTBLK *newevtp) |
| 309 | { |
no test coverage detected