| 5149 | } |
| 5150 | |
| 5151 | bool AudioEngine::needsWisdomGeneration() |
| 5152 | { |
| 5153 | #ifndef HAVE_FFTW3 |
| 5154 | return false; |
| 5155 | #else |
| 5156 | const QString path = wisdomFilePath(); |
| 5157 | if (!QFile::exists(path)) { |
| 5158 | logNr2WisdomSummary(QStringLiteral("NR2 enable preflight")); |
| 5159 | return true; |
| 5160 | } |
| 5161 | |
| 5162 | if (!SpectralNR::loadWisdom(wisdomDir().toStdString())) { |
| 5163 | logNr2WisdomSummary(QStringLiteral("NR2 enable preflight")); |
| 5164 | return true; |
| 5165 | } |
| 5166 | |
| 5167 | return false; |
| 5168 | #endif |
| 5169 | } |
| 5170 | |
| 5171 | SpectralNR::WisdomResult AudioEngine::generateWisdom( |
| 5172 | SpectralNR::WisdomProgressCb progress, |
nothing calls this directly
no test coverage detected