comparison data/fileio/WavFileReader.h @ 317:c324d410b096

* RemoteFile -> FileSource now it's used all over the place for local files as well.
author Chris Cannam
date Thu, 18 Oct 2007 16:20:26 +0000
parents 3a6725f285d6
children 700cd3350391
comparison
equal deleted inserted replaced
316:3a6725f285d6 317:c324d410b096
24 #include <set> 24 #include <set>
25 25
26 class WavFileReader : public AudioFileReader 26 class WavFileReader : public AudioFileReader
27 { 27 {
28 public: 28 public:
29 WavFileReader(RemoteFile source, bool fileUpdating = false); 29 WavFileReader(FileSource source, bool fileUpdating = false);
30 virtual ~WavFileReader(); 30 virtual ~WavFileReader();
31 31
32 virtual QString getError() const { return m_error; } 32 virtual QString getError() const { return m_error; }
33 33
34 /** 34 /**
39 SampleBlock &frames) const; 39 SampleBlock &frames) const;
40 40
41 static void getSupportedExtensions(std::set<QString> &extensions); 41 static void getSupportedExtensions(std::set<QString> &extensions);
42 static bool supportsExtension(QString ext); 42 static bool supportsExtension(QString ext);
43 static bool supportsContentType(QString type); 43 static bool supportsContentType(QString type);
44 static bool supports(RemoteFile &source); 44 static bool supports(FileSource &source);
45 45
46 virtual int getDecodeCompletion() const { return 100; } 46 virtual int getDecodeCompletion() const { return 100; }
47 47
48 bool isUpdating() const { return m_updating; } 48 bool isUpdating() const { return m_updating; }
49 49
52 52
53 protected: 53 protected:
54 SF_INFO m_fileInfo; 54 SF_INFO m_fileInfo;
55 SNDFILE *m_file; 55 SNDFILE *m_file;
56 56
57 RemoteFile m_source; 57 FileSource m_source;
58 QString m_path; 58 QString m_path;
59 QString m_error; 59 QString m_error;
60 60
61 mutable QMutex m_mutex; 61 mutable QMutex m_mutex;
62 mutable float *m_buffer; 62 mutable float *m_buffer;