this is to be called from csoundKillInstanceInternal() in insert.c */
| 325 | csoundKillInstanceInternal() in insert.c |
| 326 | */ |
| 327 | void killInstance_enqueue(CSOUND *csound, MYFLT instr, int insno, |
| 328 | INSDS *ip, int mode, |
| 329 | int allow_release) { |
| 330 | const int argsize = ARG_ALIGN*5; |
| 331 | char args[ARG_ALIGN*5]; |
| 332 | memcpy(args, &instr, sizeof(int)); |
| 333 | memcpy(args+ARG_ALIGN, &insno, sizeof(int)); |
| 334 | memcpy(args+ARG_ALIGN*2, &ip, sizeof(INSDS *)); |
| 335 | memcpy(args+ARG_ALIGN*3, &mode, sizeof(int)); |
| 336 | memcpy(args+ARG_ALIGN*4, &allow_release, sizeof(int)); |
| 337 | message_enqueue(csound,KILL_INSTANCE,args,argsize); |
| 338 | } |
| 339 | |
| 340 | /* this is to be called from |
| 341 | csoundCompileTreeInternal() in csound_orc_compile.c |
no test coverage detected