diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-22 15:55:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-22 15:55:23 +0000 |
| commit | 153b4256c6d5f33b3d31bf9353e7cfd279d63997 (patch) | |
| tree | 30a483c1d390f70b4f5aa9c60686d69a00403631 /src/plugins/Input/cdaudio/decoder_cdaudio.h | |
| parent | 7ec5b791cbf171a60f75c731b7c035d536ecce95 (diff) | |
| download | qmmp-153b4256c6d5f33b3d31bf9353e7cfd279d63997.tar.gz qmmp-153b4256c6d5f33b3d31bf9353e7cfd279d63997.tar.bz2 qmmp-153b4256c6d5f33b3d31bf9353e7cfd279d63997.zip | |
ported cd audio plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1065 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 | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/plugins/Input/cdaudio/decoder_cdaudio.h b/src/plugins/Input/cdaudio/decoder_cdaudio.h index 78ab8d62d..0b1980570 100644 --- a/src/plugins/Input/cdaudio/decoder_cdaudio.h +++ b/src/plugins/Input/cdaudio/decoder_cdaudio.h @@ -49,32 +49,23 @@ public: static QList <CDATrack> generateTrackList(const QString &device = QString()); static qint64 calculateTrackLength(lsn_t startlsn, lsn_t endlsn); - // Standard Decoder API + // Standard Decoder API bool initialize(); qint64 totalTime(); - void seek(qint64); - void stop(); + int bitrate(); private: - // thread run function - void run(); - // helper functions - void flush(bool = FALSE); - void deinit(); + qint64 readAudio(char *audio, qint64 maxSize); + void seekAudio(qint64 time); // libcdio variables lsn_t m_first_sector; lsn_t m_last_sector; lsn_t m_current_sector; CdIo_t *m_cdio; - // output buffer - char *m_output_buf; - ulong m_output_bytes, m_output_at; //other variables - bool m_inited, m_user_stop, m_done, m_finish; QString m_url; - unsigned int m_bks; - quint64 m_bitrate; - qint64 m_totalTime, m_seekTime; + int m_bitrate; + qint64 m_totalTime; }; #endif // DECODER_CDAUIDO_H |
