wasapi: Implement automatic stream management
Submitted by Nirbheek Chauhan
Currently, when using wasapisrc/wasapisink, if the default source devices changes WASAPI captures and sends us silence, and if the default sink device changes WASAPI throws away all rendered audio. Starting with Windows 10, WASAPI now has automatic stream management:
We should implement this in such a way that this mechanism is used at runtime if running on Windows 10, and a fallback mechanism (manually switching devices) is used when running on Windows 7 or 8.