Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/data/fileio/AudioFileReader.h Mon Jul 08 14:49:28 2013 +0100 +++ b/data/fileio/AudioFileReader.h Wed Jul 17 15:40:01 2013 +0100 @@ -65,6 +65,13 @@ typedef std::map<QString, QString> TagMap; virtual TagMap getTags() const { return TagMap(); } + /** + * Return true if this file supports fast seek and random + * access. Typically this will be true for uncompressed formats + * and false for compressed ones. + */ + virtual bool isQuicklySeekable() const = 0; + /** * Return interleaved samples for count frames from index start. * The resulting sample block will contain count *