On 29 May 2001 [EMAIL PROTECTED] wrote:

> Log message:
> * Main thread/process now checks polyphony before starting the vm
>
> This might help with synchronization, as suggested by Matt. Will need some
> testing on Win32.

This doesn't appear to help, unfortuneately :/

But, it seems that the problem is corrected by Sleep'ing for 100ms after
the sched_yield you put in, which gives the (crappy) scheduler plenty of
time to let the sound thread run for a bit.

The fix is to put

#ifdef _WIN32
                Sleep(100);
#endif

after the sci_sched_yield() at main.c(1027).

I agree that we should wait on a conditional varable, but Im not sure how
to do that myself.

--
http://www.clock.org/~matt


Reply via email to