Mercurial > hg > svcore
comparison data/fileio/OggVorbisFileReader.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 |
---|---|
30 #include <QFileInfo> | 30 #include <QFileInfo> |
31 #include <QProgressDialog> | 31 #include <QProgressDialog> |
32 | 32 |
33 static int instances = 0; | 33 static int instances = 0; |
34 | 34 |
35 OggVorbisFileReader::OggVorbisFileReader(RemoteFile source, | 35 OggVorbisFileReader::OggVorbisFileReader(FileSource source, |
36 DecodeMode decodeMode, | 36 DecodeMode decodeMode, |
37 CacheMode mode, | 37 CacheMode mode, |
38 size_t targetRate) : | 38 size_t targetRate) : |
39 CodedAudioFileReader(mode, targetRate), | 39 CodedAudioFileReader(mode, targetRate), |
40 m_source(source), | 40 m_source(source), |
215 { | 215 { |
216 return (type == "application/ogg"); | 216 return (type == "application/ogg"); |
217 } | 217 } |
218 | 218 |
219 bool | 219 bool |
220 OggVorbisFileReader::supports(RemoteFile &source) | 220 OggVorbisFileReader::supports(FileSource &source) |
221 { | 221 { |
222 return (supportsExtension(source.getExtension()) || | 222 return (supportsExtension(source.getExtension()) || |
223 supportsContentType(source.getContentType())); | 223 supportsContentType(source.getContentType())); |
224 } | 224 } |
225 | 225 |