Mercurial > hg > svcore
comparison data/fileio/WavFileReader.cpp @ 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 | 166c22eff678 |
comparison
equal
deleted
inserted
replaced
| 316:3a6725f285d6 | 317:c324d410b096 |
|---|---|
| 18 #include <iostream> | 18 #include <iostream> |
| 19 | 19 |
| 20 #include <QMutexLocker> | 20 #include <QMutexLocker> |
| 21 #include <QFileInfo> | 21 #include <QFileInfo> |
| 22 | 22 |
| 23 WavFileReader::WavFileReader(RemoteFile source, bool fileUpdating) : | 23 WavFileReader::WavFileReader(FileSource source, bool fileUpdating) : |
| 24 m_file(0), | 24 m_file(0), |
| 25 m_source(source), | 25 m_source(source), |
| 26 m_path(source.getLocalFilename()), | 26 m_path(source.getLocalFilename()), |
| 27 m_buffer(0), | 27 m_buffer(0), |
| 28 m_bufsiz(0), | 28 m_bufsiz(0), |
| 202 type == "audio/x-aiff" || | 202 type == "audio/x-aiff" || |
| 203 type == "audio/basic"); | 203 type == "audio/basic"); |
| 204 } | 204 } |
| 205 | 205 |
| 206 bool | 206 bool |
| 207 WavFileReader::supports(RemoteFile &source) | 207 WavFileReader::supports(FileSource &source) |
| 208 { | 208 { |
| 209 return (supportsExtension(source.getExtension()) || | 209 return (supportsExtension(source.getExtension()) || |
| 210 supportsContentType(source.getContentType())); | 210 supportsContentType(source.getContentType())); |
| 211 } | 211 } |
| 212 | 212 |
