mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(audio): completely remove Audio class dependency from Core
The Audio singleton instance initializes itself on startup. No need for an extra call.
This commit is contained in:
parent
98d513990e
commit
e5c7b3a4f6
|
@ -25,7 +25,6 @@
|
|||
#include "src/core/coreav.h"
|
||||
#include "src/persistence/settings.h"
|
||||
#include "src/widget/gui.h"
|
||||
#include "src/audio/audio.h"
|
||||
#include "src/persistence/profilelocker.h"
|
||||
#include "src/net/avatarbroadcaster.h"
|
||||
#include "src/persistence/profile.h"
|
||||
|
@ -64,9 +63,6 @@ Core::Core(QThread *CoreThread, Profile& profile) :
|
|||
{
|
||||
coreThread = CoreThread;
|
||||
|
||||
Audio::getInstance();
|
||||
|
||||
|
||||
toxTimer = new QTimer(this);
|
||||
toxTimer->setSingleShot(true);
|
||||
connect(toxTimer, &QTimer::timeout, this, &Core::process);
|
||||
|
|
Loading…
Reference in New Issue
Block a user