Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.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 | 1d656dcda8ef |
comparison
equal
deleted
inserted
replaced
316:3a6725f285d6 | 317:c324d410b096 |
---|---|
32 | 32 |
33 #include <QApplication> | 33 #include <QApplication> |
34 #include <QFileInfo> | 34 #include <QFileInfo> |
35 #include <QProgressDialog> | 35 #include <QProgressDialog> |
36 | 36 |
37 MP3FileReader::MP3FileReader(RemoteFile source, DecodeMode decodeMode, | 37 MP3FileReader::MP3FileReader(FileSource source, DecodeMode decodeMode, |
38 CacheMode mode, size_t targetRate) : | 38 CacheMode mode, size_t targetRate) : |
39 CodedAudioFileReader(mode, targetRate), | 39 CodedAudioFileReader(mode, targetRate), |
40 m_source(source), | 40 m_source(source), |
41 m_path(source.getLocalFilename()), | 41 m_path(source.getLocalFilename()), |
42 m_decodeThread(0) | 42 m_decodeThread(0) |
408 { | 408 { |
409 return (type == "audio/mpeg"); | 409 return (type == "audio/mpeg"); |
410 } | 410 } |
411 | 411 |
412 bool | 412 bool |
413 MP3FileReader::supports(RemoteFile &source) | 413 MP3FileReader::supports(FileSource &source) |
414 { | 414 { |
415 return (supportsExtension(source.getExtension()) || | 415 return (supportsExtension(source.getExtension()) || |
416 supportsContentType(source.getContentType())); | 416 supportsContentType(source.getContentType())); |
417 } | 417 } |
418 | 418 |