mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
Style
This commit is contained in:
@@ -138,7 +138,9 @@ namespace BlackCore
|
||||
QMutexLocker lock(&m_mutexConnection);
|
||||
|
||||
// async connection
|
||||
m_connection->connectTo(cid, password, callsign, client, { this, [ = ](bool authenticated)
|
||||
m_connection->connectTo(cid, password, callsign, client,
|
||||
{
|
||||
this, [ = ](bool authenticated)
|
||||
{
|
||||
// this is the callback when the connection has been established
|
||||
|
||||
@@ -298,7 +300,6 @@ namespace BlackCore
|
||||
this->setReceiveAudio(false); // threadsafe
|
||||
|
||||
// stop input/output
|
||||
|
||||
{
|
||||
QMutexLocker lock{&m_mutex};
|
||||
m_input->stop();
|
||||
|
||||
@@ -51,6 +51,12 @@ namespace BlackMisc
|
||||
return pDir;
|
||||
}
|
||||
|
||||
const QString &CDirectoryUtils::audioPluginDirectory()
|
||||
{
|
||||
static const QString pDir(CFileUtils::appendFilePaths(binDirectory(), "audio"));
|
||||
return pDir;
|
||||
}
|
||||
|
||||
const QString &CDirectoryUtils::getXSwiftBusBuildDirectory()
|
||||
{
|
||||
if (!CBuildConfig::isLocalDeveloperDebugBuild())
|
||||
|
||||
@@ -43,6 +43,10 @@ namespace BlackMisc
|
||||
//! Plugins directory
|
||||
static const QString &pluginsDirectory();
|
||||
|
||||
//! Audio plugins directory for Qt audio
|
||||
//! \remark contains the audio plugins
|
||||
static const QString &audioPluginDirectory();
|
||||
|
||||
//! The build directory
|
||||
//! \remark if is a local build
|
||||
static const QString &getXSwiftBusBuildDirectory();
|
||||
|
||||
Reference in New Issue
Block a user