Mercurial > hg > svcore
comparison data/model/WaveFileModel.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 | 1afaf98dbf11 |
comparison
equal
deleted
inserted
replaced
316:3a6725f285d6 | 317:c324d410b096 |
---|---|
18 | 18 |
19 #include "base/Thread.h" | 19 #include "base/Thread.h" |
20 #include <QMutex> | 20 #include <QMutex> |
21 #include <QTimer> | 21 #include <QTimer> |
22 | 22 |
23 #include "data/fileio/RemoteFile.h" | 23 #include "data/fileio/FileSource.h" |
24 | 24 |
25 #include "RangeSummarisableTimeValueModel.h" | 25 #include "RangeSummarisableTimeValueModel.h" |
26 #include "PowerOfSqrtTwoZoomConstraint.h" | 26 #include "PowerOfSqrtTwoZoomConstraint.h" |
27 | 27 |
28 #include <stdlib.h> | 28 #include <stdlib.h> |
32 class WaveFileModel : public RangeSummarisableTimeValueModel | 32 class WaveFileModel : public RangeSummarisableTimeValueModel |
33 { | 33 { |
34 Q_OBJECT | 34 Q_OBJECT |
35 | 35 |
36 public: | 36 public: |
37 WaveFileModel(RemoteFile source, size_t targetRate = 0); | 37 WaveFileModel(FileSource source, size_t targetRate = 0); |
38 WaveFileModel(RemoteFile source, AudioFileReader *reader); | 38 WaveFileModel(FileSource source, AudioFileReader *reader); |
39 ~WaveFileModel(); | 39 ~WaveFileModel(); |
40 | 40 |
41 bool isOK() const; | 41 bool isOK() const; |
42 bool isReady(int *) const; | 42 bool isReady(int *) const; |
43 | 43 |
102 size_t m_frameCount; | 102 size_t m_frameCount; |
103 }; | 103 }; |
104 | 104 |
105 void fillCache(); | 105 void fillCache(); |
106 | 106 |
107 RemoteFile m_source; | 107 FileSource m_source; |
108 QString m_path; | 108 QString m_path; |
109 AudioFileReader *m_reader; | 109 AudioFileReader *m_reader; |
110 bool m_myReader; | 110 bool m_myReader; |
111 | 111 |
112 size_t m_startFrame; | 112 size_t m_startFrame; |