Commit 1ed466fa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

wasapi: fix Flush()

The stream must be stopped before it can be flushed (reset).
parent 890ea076
......@@ -123,8 +123,9 @@ static void Flush(audio_output_t *aout, bool wait)
HRESULT hr;
if (wait)
return;
return; /* Not drain implemented */
IAudioClient_Stop(sys->client);
hr = IAudioClient_Reset(sys->client);
if (FAILED(hr))
msg_Warn(aout, "cannot reset stream (error 0x%lx)", hr);
......
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