mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
committed by
Klaus Basan
parent
c04e408844
commit
526149f94d
@@ -28,7 +28,10 @@ namespace BlackCore
|
||||
m_keyboard(nullptr)
|
||||
{
|
||||
// 1. Init by "voice driver"
|
||||
this->m_voice = new CVoiceVatlib(this);
|
||||
this->m_voice = new CVoiceVatlib();
|
||||
m_voice->moveToThread(&m_threadVoice);
|
||||
m_threadVoice.start();
|
||||
|
||||
m_keyboard = IKeyboard::getInstance();
|
||||
|
||||
// 2. Signal / slots
|
||||
@@ -42,6 +45,8 @@ namespace BlackCore
|
||||
CContextAudio::~CContextAudio()
|
||||
{
|
||||
this->leaveAllVoiceRooms();
|
||||
m_threadVoice.quit();
|
||||
m_threadVoice.wait(1000);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include "voice_vatlib.h"
|
||||
#include "blackcore/keyboard.h"
|
||||
|
||||
#include <QThread>
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
//! \brief Audio context implementation
|
||||
@@ -114,6 +116,8 @@ namespace BlackCore
|
||||
CVoiceVatlib *m_voice; //!< underlying voice lib
|
||||
IKeyboard *m_keyboard;
|
||||
IKeyboard::RegistrationHandle m_handlePtt;
|
||||
IContextSettings *m_contextSettings;
|
||||
QThread m_threadVoice;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user