Stop audio loopback on component destruction.

This commit is contained in:
armored-dragon 2025-04-23 07:51:08 -05:00
parent 3aed07517a
commit 4631ad0a24
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -4,6 +4,7 @@
//
// Created by Seth Alves on 2019-2-18
// Copyright 2019 High Fidelity, Inc.
// Copyright 2025 Overte e.V.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@ -67,4 +68,9 @@ RowLayout {
font.italic: true
text: audioLoopedBack ? qsTr("Speak in your input") : "";
}
Component.onDestruction: {
loopbackTimer.stop();
stopAudioLoopback();
}
}