blob: 4f63f143c9daf2c3dc5f6bbb4b9213f22f916321 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef ANALYZER_ANALYZERKEY_H
#define ANALYZER_ANALYZERKEY_H
#include <QHash>
#include <QString>
#include "analyzer/analyzer.h"
#include "analyzer/vamp/vampanalyzer.h"
#include "preferences/usersettings.h"
#include "track/track.h"
class AnalyzerKey : public Analyzer {
public:
AnalyzerKey(UserSettingsPointer pConfig);
virtual ~AnalyzerKey();
bool initialize(TrackPointer tio, int sampleRate, int totalSamples) override;
bool isDisabledOrLoadStoredSuccess(TrackPointer tio) const override;
void process(const CSAMPLE *pIn, const int iLen) override;
void finalize(TrackPointer tio) override;
void cleanup(TrackPointer tio) override;
private:
static QHash<QString, QString> getExtraVersionInfo(
QString pluginId, bool bPreferencesFastAnalysis);
UserSettingsPointer m_pConfig;
VampAnalyzer* m_pVamp;
QString m_pluginId;
int m_iSampleRate;
int m_iTotalSamples;
bool m_bPreferencesKeyDetectionEnabled;
bool m_bPreferencesFastAnalysisEnabled;
bool m_bPreferencesReanalyzeEnabled;
};
#endif /* ANALYZER_ANALYZERKEY_H */
|