AnalyzerQueue::AnalyzerQueue( mixxx::DbConnectionPoolPtr pDbConnectionPool, const UserSettingsPointer& pConfig, Mode mode) : m_pDbConnectionPool(std::move(pDbConnectionPool)), m_exit(false), m_aiCheckPriorities(false), m_sampleBuffer(kAnalysisSamplesPerBlock), m_queue_size(0) { if (mode != Mode::WithoutWaveform) { m_pAnalyzers.push_back(std::make_unique<AnalyzerWaveform>(pConfig)); } m_pAnalyzers.push_back(std::make_unique<AnalyzerGain>(pConfig)); m_pAnalyzers.push_back(std::make_unique<AnalyzerEbur128>(pConfig)); #ifdef __VAMP__ m_pAnalyzers.push_back(std::make_unique<AnalyzerBeats>(pConfig)); m_pAnalyzers.push_back(std::make_unique<AnalyzerKey>(pConfig)); #endif connect(this, SIGNAL(updateProgress()), this, SLOT(slotUpdateProgress())); start(QThread::LowPriority); }
void QPkBackend::removePackages() { m_t = new PackageKit::Transaction(QString(), this); if (m_t->error() != PackageKit::Client::NoError) { return; } connect(m_t, SIGNAL(changed()), this, SLOT(slotUpdateProgress())); connect(m_t, SIGNAL(finished(PackageKit::Enum::Exit,uint)), this, SLOT(slotFinished(PackageKit::Enum::Exit,uint))); m_t->removePackages(m_removePtrs, false, true); }
NMGTestLoaderHandler::NMGTestLoaderHandler() { filesLoaded.clear(); filesToLoad.clear(); readerThread = 0; readerThreadCancelled = FALSE; progress = 0; timer = new QTimer(); connect(timer,SIGNAL(timeout()),this,SLOT(slotUpdateProgress())); }
AnalyserQueue::AnalyserQueue(TrackCollection* pTrackCollection) : m_aq(), m_exit(false), m_aiCheckPriorities(false), m_sampleBuffer(kAnalysisSamplesPerBlock), m_tioq(), m_qm(), m_qwait(), m_queue_size(0) { Q_UNUSED(pTrackCollection); connect(this, SIGNAL(updateProgress()), this, SLOT(slotUpdateProgress())); }
AnalyserQueue::AnalyserQueue(TrackCollection* pTrackCollection) : m_aq(), m_exit(false), m_aiCheckPriorities(false), m_tioq(), m_qm(), m_qwait(), m_queue_size(0) { connect(this, SIGNAL(updateProgress()), this, SLOT(slotUpdateProgress())); connect(this, SIGNAL(trackDone(TrackPointer)), &pTrackCollection->getTrackDAO(), SLOT(saveTrack(TrackPointer))); }
AnalyserQueue::AnalyserQueue(TrackCollection* pTrackCollection) : m_aq(), m_exit(false), m_aiCheckPriorities(false), m_pSamplesPCM(new SAMPLE[kAnalysisBlockSize]), m_pSamples(new CSAMPLE[kAnalysisBlockSize]), m_tioq(), m_qm(), m_qwait(), m_queue_size(0) { Q_UNUSED(pTrackCollection); connect(this, SIGNAL(updateProgress()), this, SLOT(slotUpdateProgress())); }