Commit 889b477b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

wasapi: sleep for half a period as hinted in MSDN

parent 1a116993
......@@ -180,8 +180,7 @@ static HRESULT Play(aout_stream_t *s, block_t *block)
break; /* done */
/* Out of buffer space, sleep */
msleep(AOUT_MIN_PREPARE_TIME
+ block->i_nb_samples * CLOCK_FREQ / sys->rate);
msleep(sys->frames * (CLOCK_FREQ / 2) / sys->rate);
}
IAudioRenderClient_Release(render);
out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment