comparison data/fileio/AudioFileReader.h @ 823:f0558e69a074

Rename Resampling- to DecodingWavFileReader, and use it whenever we have an audio file that is not quickly seekable using libsndfile. Avoids very slow performance when analysing ogg files.
author Chris Cannam
date Wed, 17 Jul 2013 15:40:01 +0100
parents 5db8181ea521
children 59e7fe1b1003
comparison
equal deleted inserted replaced
821:06c64a1c6785 823:f0558e69a074
63 virtual QString getMaker() const { return ""; } 63 virtual QString getMaker() const { return ""; }
64 64
65 typedef std::map<QString, QString> TagMap; 65 typedef std::map<QString, QString> TagMap;
66 virtual TagMap getTags() const { return TagMap(); } 66 virtual TagMap getTags() const { return TagMap(); }
67 67
68 /**
69 * Return true if this file supports fast seek and random
70 * access. Typically this will be true for uncompressed formats
71 * and false for compressed ones.
72 */
73 virtual bool isQuicklySeekable() const = 0;
74
68 /** 75 /**
69 * Return interleaved samples for count frames from index start. 76 * Return interleaved samples for count frames from index start.
70 * The resulting sample block will contain count * 77 * The resulting sample block will contain count *
71 * getChannelCount() samples (or fewer if end of file is reached). 78 * getChannelCount() samples (or fewer if end of file is reached).
72 * 79 *