| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef __AAC_SOURCE_H__ |
| 21 |
#define __AAC_SOURCE_H__ |
| 22 |
|
| 23 |
#include <lastfm/FingerprintableSource> |
| 24 |
|
| 25 |
class AacSource : public lastfm::FingerprintableSource |
| 26 |
{ |
| 27 |
public: |
| 28 |
AacSource(); |
| 29 |
~AacSource(); |
| 30 |
|
| 31 |
virtual void getInfo(int& lengthSecs, int& samplerate, int& bitrate, int& nchannels); |
| 32 |
virtual void init(const QString& fileName); |
| 33 |
virtual int updateBuffer(signed short* pBuffer, size_t bufferSize); |
| 34 |
virtual void skip(const int mSecs); |
| 35 |
virtual void skipSilence(double silenceThreshold = 0.0001); |
| 36 |
virtual bool eof() const { return m_eof; } |
| 37 |
|
| 38 |
private: |
| 39 |
int checkHeader(); |
| 40 |
QString m_fileName; |
| 41 |
bool m_eof; |
| 42 |
class AAC_File *m_aacFile; |
| 43 |
}; |
| 44 |
|
| 45 |
#endif |
| 46 |
|