mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:46:26 +02:00
stop audio sample on visibleChanged
This commit is contained in:
parent
5c0e9e7496
commit
ab6c8505b8
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ RowLayout {
|
||||||
|
|
||||||
Component.onCompleted: createSampleSound();
|
Component.onCompleted: createSampleSound();
|
||||||
Component.onDestruction: stopSound();
|
Component.onDestruction: stopSound();
|
||||||
|
onVisibleChanged: { if (!visible) stopSound(); }
|
||||||
|
|
||||||
HifiConstants { id: hifi; }
|
HifiConstants { id: hifi; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue