00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef WPAUDIOREADER_H
00023 #define WPAUDIOREADER_H
00024
00025 #include <AbstractAudioReader.h>
00026 #include "wavpack/wavpack.h"
00027
00028
00029 class WPAudioReader : public AbstractAudioReader
00030 {
00031 public:
00032 WPAudioReader(QString filename);
00033 ~WPAudioReader();
00034
00035 QString decoder_type() const {return "wavpack";}
00036
00037 static bool can_decode(QString filename);
00038
00039 protected:
00040 bool seek_private(nframes_t start);
00041 nframes_t read_private(DecodeBuffer* buffer, nframes_t frameCount);
00042
00043 WavpackContext* m_wp;
00044 bool m_isFloat;
00045 int m_bitsPerSample;
00046 int m_bytesPerSample;
00047 };
00048
00049 #endif