mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
refs #382, reviewed audio context handling
* only init QDbusServer for P2P * changed init order of contexts in runtime * use "fake" signal to call setComVoiceRooms (remote in GUI) * added slot to change voice room callsign * used "org.swift" instead of "net.vatim" (just style) * used const QString for serviceName * added correct copyright header (just style)
This commit is contained in:
@@ -49,12 +49,19 @@ BlackGui::CEnableForFramelessWindow::WindowMode CIntroWindow::getWindowMode() co
|
||||
GuiModes::CoreMode CIntroWindow::getCoreMode() const
|
||||
{
|
||||
if (this->ui->rb_CoreExternalVoiceLocal->isChecked())
|
||||
{
|
||||
return GuiModes::CoreExternalAudioLocal;
|
||||
}
|
||||
else if (this->ui->rb_CoreInGuiProcess->isChecked())
|
||||
{
|
||||
return GuiModes::CoreInGuiProcess;
|
||||
}
|
||||
else
|
||||
{
|
||||
return GuiModes::CoreExternal;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* DBus server address
|
||||
*/
|
||||
|
||||
@@ -89,17 +89,17 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
GuiModes::CoreMode coreMode = intro.getCoreMode();
|
||||
windowMode = intro.getWindowMode();
|
||||
QString dbusAddress = BlackCore::CDBusServer::fixAddressToDBusAddress(intro.getDBusAddress());
|
||||
QString dbusAddress = CDBusServer::fixAddressToDBusAddress(intro.getDBusAddress());
|
||||
switch (coreMode)
|
||||
{
|
||||
case GuiModes::CoreExternal:
|
||||
runtimeConfig = BlackCore::CRuntimeConfig::remote(dbusAddress);
|
||||
runtimeConfig = CRuntimeConfig::remote(dbusAddress);
|
||||
break;
|
||||
case GuiModes::CoreInGuiProcess:
|
||||
runtimeConfig = BlackCore::CRuntimeConfig::local(dbusAddress);
|
||||
runtimeConfig = CRuntimeConfig::local(dbusAddress);
|
||||
break;
|
||||
case GuiModes::CoreExternalAudioLocal:
|
||||
runtimeConfig = BlackCore::CRuntimeConfig::remoteLocalAudio(dbusAddress);
|
||||
runtimeConfig = CRuntimeConfig::remoteLocalAudio(dbusAddress);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user