Stop all capture devices when Audio.qml is not visible.

Otherwise, Windows will continue to capture audio from all attached devices (possibly causing mic audio glitches) until Interface shutdown.
This commit is contained in:
Ken Cooke 2017-07-11 10:06:38 -07:00
parent d6eb731f3a
commit 0da19af6f3

View file

@ -52,6 +52,7 @@ Rectangle {
Component.onCompleted: enablePeakValues();
Component.onDestruction: disablePeakValues();
onVisibleChanged: visible ? enablePeakValues() : disablePeakValues();
Column {
y: 16; // padding does not work