Mercurial > hg > svcore
diff data/fileio/WavFileReader.h @ 316:3a6725f285d6
* Make RemoteFile far more pervasive, and use it for local files as well
so that we can handle both transparently. Make it shallow copy with
reference counting, so it can be used by value without having to worry
about the cache file lifetime. Use RemoteFile for MainWindow file-open
functions, etc
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2007 15:31:20 +0000 |
parents | 92e8dbde73cd |
children | c324d410b096 |
line wrap: on
line diff
--- a/data/fileio/WavFileReader.h Thu Oct 18 10:24:26 2007 +0000 +++ b/data/fileio/WavFileReader.h Thu Oct 18 15:31:20 2007 +0000 @@ -26,7 +26,7 @@ class WavFileReader : public AudioFileReader { public: - WavFileReader(QString path, bool fileUpdating = false); + WavFileReader(RemoteFile source, bool fileUpdating = false); virtual ~WavFileReader(); virtual QString getError() const { return m_error; } @@ -39,6 +39,9 @@ SampleBlock &frames) const; static void getSupportedExtensions(std::set<QString> &extensions); + static bool supportsExtension(QString ext); + static bool supportsContentType(QString type); + static bool supports(RemoteFile &source); virtual int getDecodeCompletion() const { return 100; } @@ -51,6 +54,7 @@ SF_INFO m_fileInfo; SNDFILE *m_file; + RemoteFile m_source; QString m_path; QString m_error;