diff data/fileio/CodedAudioFileReader.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 babed5be1ae7
children f3cda3280398 59e7fe1b1003
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.h	Mon Jul 08 14:49:28 2013 +0100
+++ b/data/fileio/CodedAudioFileReader.h	Wed Jul 17 15:40:01 2013 +0100
@@ -43,6 +43,9 @@
 
     virtual size_t getNativeRate() const { return m_fileRate; }
 
+    /// Intermediate cache means all CodedAudioFileReaders are quickly seekable
+    virtual bool isQuicklySeekable() const { return true; }
+
 signals:
     void progress(int);