Hi,
> > 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).
OK, will add that later,
> I agree that we should wait on a conditional varable, but Im not sure how
> to do that myself.
The thing is that I don't see _what_ we should be waiting for. If the
sound server responds to the above request, this means that it's working
and already in full swing. 100 ms later, the sound server is in exactly
the same condition as before, at least as far as I can tell...
llap,
Christoph