16 #ifndef _MP3_FILE_READER_H_ 17 #define _MP3_FILE_READER_H_ 44 bool normalised =
false,
96 bool decode(
void *mm,
int sz);
97 enum mad_flow
accept(
struct mad_header
const *,
struct mad_pcm *);
99 static enum mad_flow
input(
void *,
struct mad_stream *);
100 static enum mad_flow
output(
void *,
struct mad_header
const *,
struct mad_pcm *);
101 static enum mad_flow
error(
void *,
struct mad_stream *,
struct mad_frame *);
116 QString
loadTag(
void *vtag,
const char *name);
unsigned char const * start
virtual bool isUpdating() const
QString loadTag(void *vtag, const char *name)
static void getSupportedExtensions(std::set< QString > &extensions)
QString getLocation() const
Return the location filename or URL as passed to the constructor.
static enum mad_flow input(void *, struct mad_stream *)
DecodeThread * m_decodeThread
enum mad_flow accept(struct mad_header const *, struct mad_pcm *)
static enum mad_flow output(void *, struct mad_header const *, struct mad_pcm *)
virtual QString getMaker() const
Return the "maker" of the work in the audio file, if known.
virtual TagMap getTags() const
unsigned char * m_filebuffer
MP3FileReader(FileSource source, DecodeMode decodeMode, CacheMode cacheMode, int targetRate=0, bool normalised=false, ProgressReporter *reporter=0)
std::map< QString, QString > TagMap
FileSource is a class used to refer to the contents of a file that may be either local or at a remote...
virtual QString getError() const
bool decode(void *mm, int sz)
virtual QString getTitle() const
Return the title of the work in the audio file, if known.
static bool supports(FileSource &source)
virtual int getDecodeCompletion() const
virtual QString getLocation() const
Return the location of the audio data in the reader (as passed in to the FileSource constructor,...
ProgressReporter * m_reporter
static enum mad_flow error(void *, struct mad_stream *, struct mad_frame *)
DecodeThread(MP3FileReader *reader)
static bool supportsExtension(QString ext)
static bool supportsContentType(QString type)