Miam-Player  0.8.0
A nice music player
qchromaprint.h
Go to the documentation of this file.
1 #ifndef QCHROMAPRINT_H
2 #define QCHROMAPRINT_H
3 
5 
6 #include <QObject>
7 
9 
10 class AcoustId;
11 
18 class MIAMACOUSTID_LIBRARY QChromaprint : public QObject
19 {
20  Q_OBJECT
21 private:
22  AcoustId *_acoustId;
23  uint _maxLength;
24  ChromaprintContext *_ctx;
25  int _duration;
26 
27  static int g_input_channels;
28  static int g_input_sample_rate;
29  static double g_max_duration;
30  static double g_max_chunk_duration;
31  static bool g_overlap;
32  static bool g_raw;
33  static bool g_abs_ts;
34 
35 public:
36  explicit QChromaprint(AcoustId *parent);
37 
38  virtual ~QChromaprint();
39 
40  inline int duration() const { return _duration; }
41 
42  int start(const QString &file);
43 
44  QString fingerprint() const;
45  QString rawFingerprint() const;
46 
47 private:
48  uint maxLength() const;
49 
51  int processFile(const QString &file);
52 
53 signals:
54  void finished(const QString &fingerprint);
55 };
56 
57 #endif // QCHROMAPRINT_H
unsigned int uint
Definition: taglib.h:68
#define MIAMACOUSTID_LIBRARY
Definition: miamacoustid_global.hpp:8
The QChromaprint class wraps the Chromaprint Library.
Definition: qchromaprint.h:18
The AcoustId class can fetch tags automatically from Webservice.
Definition: acoustid.h:17
int duration() const
Definition: qchromaprint.h:40
struct ChromaprintContextPrivate ChromaprintContext
Definition: chromaprint.h:80