00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef SFAUDIOREADER_H
00023 #define SFAUDIOREADER_H
00024
00025 #include <AbstractAudioReader.h>
00026 #include "sndfile.h"
00027
00028 #include <QFile>
00029
00030 class SFAudioReader : public AbstractAudioReader
00031 {
00032 public:
00033 SFAudioReader(QString filename);
00034 ~SFAudioReader();
00035
00036 QString decoder_type() const {return "sndfile";}
00037
00038 static bool can_decode(QString filename);
00039
00040 protected:
00041 bool seek_private(nframes_t start);
00042 nframes_t read_private(DecodeBuffer* buffer, nframes_t frameCount);
00043
00044 SNDFILE* m_sf;
00045 SF_INFO m_sfinfo;
00046
00047 private:
00048 QFile m_file;
00049 };
00050
00051 #endif