From ab6c8505b85c87cb5bc8a296da08012f1020c99e Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Tue, 20 Jun 2017 12:11:12 -0700 Subject: [PATCH] stop audio sample on visibleChanged --- interface/resources/qml/hifi/audio/PlaySampleSound.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/interface/resources/qml/hifi/audio/PlaySampleSound.qml b/interface/resources/qml/hifi/audio/PlaySampleSound.qml index 4e4b35abbc..14a6787a53 100644 --- a/interface/resources/qml/hifi/audio/PlaySampleSound.qml +++ b/interface/resources/qml/hifi/audio/PlaySampleSound.qml @@ -39,6 +39,7 @@ RowLayout { Component.onCompleted: createSampleSound(); Component.onDestruction: stopSound(); + onVisibleChanged: { if (!visible) stopSound(); } HifiConstants { id: hifi; }