mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-06 17:53:23 +08:00
Removed IContext
Network and voice samples work using them and have to allocate their own vatlib objects now. refs #221
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "client.h"
|
||||
#include "blackcore/voice_vatlib.h"
|
||||
#include "blackmisc/audiodevicelist.h"
|
||||
#include "blackmisc/avcallsignlist.h"
|
||||
|
||||
@@ -16,7 +17,7 @@ using namespace BlackMisc::Aviation;
|
||||
*/
|
||||
Client::Client(QObject *parent) :
|
||||
QObject(parent),
|
||||
m_voiceClient(&BlackMisc::IContext::getInstance().getObject<BlackCore::IVoice>())
|
||||
m_voiceClient(new BlackCore::CVoiceVatlib(this))
|
||||
{
|
||||
using namespace BlackCore;
|
||||
connect(m_voiceClient, &IVoice::squelchTestFinished, this, &Client::onSquelchTestFinished);
|
||||
|
||||
Reference in New Issue
Block a user