Beispiel #1
0
void MainController::connectedNinjamServer(const Ninjam::Server &server)
{
    qCDebug(jtCore) << "connected in ninjam server";
    stopNinjamController();
    Controller::NinjamController *newNinjamController = createNinjamController();// new
    ninjamController.reset(newNinjamController);

    setupNinjamControllerSignals();


    if (mainWindow) {
        mainWindow->enterInRoom(Login::RoomInfo(server.getHostName(), server.getPort(),
                                                Login::RoomTYPE::NINJAM, server.getMaxUsers(),
                                                server.getMaxChannels()));
    } else {
        qCCritical(jtCore) << "mainWindow is null!";
    }
    qCDebug(jtCore) << "starting ninjamController...";

    newNinjamController->start(server, getXmitChannelsFlags());

    if (settings.isSaveMultiTrackActivated())
        jamRecorder.startRecording(getUserName(), QDir(settings.getRecordingPath()),
                                   server.getBpm(), server.getBpi(), getSampleRate());
}
void MainControllerStandalone::connectedNinjamServer(const Ninjam::Server &server)
{
    MainController::connectedNinjamServer(server);
    vstHost->setTempo(server.getBpm());
}