[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] Re: Really weird pattern issue after updating from svn



This seems relevant:

http://supercollider.svn.sourceforge.net/viewvc/supercollider/trunk/Source/lang/LangPrimSource/PyrPrimitive.cpp?r1=9597&r2=9598

Look for the section starting at line 3173. These two lines were deleted in r9598, but not replaced:

thread->beats.uf = g->thread->beats.uf;
thread->seconds.uf = g->thread->seconds.uf;

This is in the section of prRoutineResume that handles state == tInit (i.e., the first time the routine wakes up). By contrast, the next section (state == tSuspended) *does* include:

SetRaw(&thread->beats, slotRawFloat(&g->thread->beats));
SetRaw(&thread->seconds, slotRawFloat(&g->thread->seconds));

... which matches the symptom: the beats are wrong for the *first* routine wakeup, but correct subsequently.

hjh


--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman