diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-08 17:07:45 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-08 17:07:45 +0000 |
| commit | f2438206820014534209b99e0f0819010ee44860 (patch) | |
| tree | 3ef1e9ce6730e4ceaf084e954a1c543fc7f9f033 /src/plugins/Input/cdaudio/decoder_cdaudio.h | |
| parent | 301e7bf9fc22bb3fe2e8d33d4d183c80c9f64b28 (diff) | |
| download | qmmp-f2438206820014534209b99e0f0819010ee44860.tar.gz qmmp-f2438206820014534209b99e0f0819010ee44860.tar.bz2 qmmp-f2438206820014534209b99e0f0819010ee44860.zip | |
added cddb support (Closes issue 159)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1553 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/cdaudio/decoder_cdaudio.h')
| -rw-r--r-- | src/plugins/Input/cdaudio/decoder_cdaudio.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/Input/cdaudio/decoder_cdaudio.h b/src/plugins/Input/cdaudio/decoder_cdaudio.h index 7c7ace199..582aed033 100644 --- a/src/plugins/Input/cdaudio/decoder_cdaudio.h +++ b/src/plugins/Input/cdaudio/decoder_cdaudio.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009 by Ilya Kotov * + * Copyright (C) 2009-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -23,7 +23,7 @@ #include <sys/types.h> #include <cdio/cdio.h> - +#include <QMultiHash> #include <qmmp/decoder.h> class CDATrack @@ -46,7 +46,7 @@ public: DecoderCDAudio(const QString &url); virtual ~DecoderCDAudio(); - static QList <CDATrack> generateTrackList(const QString &device = QString()); + static QList <CDATrack> generateTrackList(const QString &device); static qint64 calculateTrackLength(lsn_t startlsn, lsn_t endlsn); // Standard Decoder API @@ -57,6 +57,9 @@ public: void seek(qint64 time); private: + //helper functions + static void saveToCache(QList <CDATrack> tracks, uint disc_id); + static bool readFromCache(QList <CDATrack> *tracks, uint disc_id); // libcdio variables lsn_t m_first_sector; lsn_t m_last_sector; |
