Cygwin: dsp: Reduce wait time for blocking read().
Previous wait time of 100msec is too long if application specifies smaller buffer. With this patch, the wait time is reduced to 1msec.
This commit is contained in:
parent
2654a5ba76
commit
8b2b54b41d
|
@ -931,8 +931,8 @@ fhandler_dev_dsp::Audio_in::waitfordata ()
|
|||
set_errno (EAGAIN);
|
||||
return false;
|
||||
}
|
||||
debug_printf ("100ms");
|
||||
switch (cygwait (100))
|
||||
debug_printf ("1ms");
|
||||
switch (cygwait (1))
|
||||
{
|
||||
case WAIT_SIGNALED:
|
||||
if (!_my_tls.call_signal_handler ())
|
||||
|
|
Loading…
Reference in New Issue