mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-15 18:08:26 +02:00
moved audioclient stop to dtor
This commit is contained in:
parent
77d91fce33
commit
1218f7e014
2 changed files with 4 additions and 2 deletions
|
@ -2775,7 +2775,6 @@ void Application::cleanupBeforeQuit() {
|
|||
|
||||
// destroy Audio so it and its threads have a chance to go down safely
|
||||
// this must happen after QML, as there are unexplained audio crashes originating in qtwebengine
|
||||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "stop");
|
||||
DependencyManager::destroy<AudioClient>();
|
||||
DependencyManager::destroy<AudioScriptingInterface>();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//
|
||||
tttttt//
|
||||
// AudioClient.cpp
|
||||
// interface/src
|
||||
//
|
||||
|
@ -375,6 +375,9 @@ AudioClient::AudioClient() :
|
|||
}
|
||||
|
||||
AudioClient::~AudioClient() {
|
||||
|
||||
stop();
|
||||
|
||||
if (_codec && _encoder) {
|
||||
_codec->releaseEncoder(_encoder);
|
||||
_encoder = nullptr;
|
||||
|
|
Loading…
Reference in a new issue