Skip to content

Commit

Permalink
fixed offtim for realtime mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazzarini committed Dec 11, 2017
1 parent 6cd9fd4 commit c2b902a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Engine/insert.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ int insert_event(CSOUND *csound, int insno, EVTBLK *newevtp)
"Calling schedofftim line %d; offtime= %lf (%lf)\n",
__LINE__, ip->offtim, ip->offtim*csound->ekr);
#endif
if(csound->oparms->realtime) // compensate for possible late starts
ip->offtim += (csound->icurTime/csound->esr - ip->p2.value);
//printf("%lf \n", );
schedofftim(csound, ip); /* put in turnoff list */
}
else {
Expand Down

0 comments on commit c2b902a

Please sign in to comment.