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