diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-20 16:02:04 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-07-20 16:02:04 +0000 |
| commit | 136ed47dafbd60544add69a7f2d720b7929bd83e (patch) | |
| tree | 875c56e2850c7d887b677472e9e1332d1b8be120 /src/plugins/Input/sndfile/decoder_sndfile.h | |
| parent | 699ae4cd4abb386706229e60de7beb93edf07867 (diff) | |
| download | qmmp-136ed47dafbd60544add69a7f2d720b7929bd83e.tar.gz qmmp-136ed47dafbd60544add69a7f2d720b7929bd83e.tar.bz2 qmmp-136ed47dafbd60544add69a7f2d720b7929bd83e.zip | |
enabled sndfile plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1052 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/sndfile/decoder_sndfile.h')
| -rw-r--r-- | src/plugins/Input/sndfile/decoder_sndfile.h | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/src/plugins/Input/sndfile/decoder_sndfile.h b/src/plugins/Input/sndfile/decoder_sndfile.h index c62544193..9b1bb6fb0 100644 --- a/src/plugins/Input/sndfile/decoder_sndfile.h +++ b/src/plugins/Input/sndfile/decoder_sndfile.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2008 by Ilya Kotov * + * Copyright (C) 2007-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -36,30 +36,19 @@ public: // Standard Decoder API bool initialize(); qint64 totalTime(); - void seek(qint64); - void stop(); - + int bitrate(); private: - // thread run function - void run(); + qint64 readAudio(char *audio, qint64 maxSize); + void seekAudio(qint64 time); + // helper functions - void flush(bool = FALSE); void deinit(); - // output buffer - char *m_output_buf; - SNDFILE *m_sndfile; - ulong m_output_bytes, m_output_at; - //struct sndfile_data *m_data; - short *m_buf; - unsigned int bks; - bool m_done, m_finish, m_inited, m_user_stop; - long m_freq, m_bitrate; - int m_chan; - qint64 m_output_size; - qint64 m_totalTime, m_seekTime; + int m_bitrate; + quint32 m_freq; + qint64 m_totalTime; QString m_path; }; |
