GNOME Bugzilla – Bug 793059
wasapi: Implement automatic stream management
Last modified: 2018-11-03 14:17:37 UTC
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: https://msdn.microsoft.com/en-us/library/windows/desktop/mt784437(v=vs.85).aspx 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.
We can also choose to only implement the automatic stream management bits that are available on Windows 10. To implement the manual switchover, we need to subscribe to device change events[1], then stop the device (reset), init a new one, and start using it. 1. https://msdn.microsoft.com/en-us/library/windows/desktop/dd756609(v=vs.85).aspx
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/651.