Commit ee169f14 authored by
wasapi: Fix infinite loop when the device disappears
When the audio device goes away during playback or capture, we were going into an infinite loop of AUDCLNT_E_DEVICE_INVALIDATED. Return -1 and post an error message so the ringbuffer thread exits with an error.
Showing with 67 additions and 27 deletions