comparison data/fileio/BQAFileReader.cpp @ 1604:8aa1447fe27e bqaudiostream

Be a tiny bit discriminating about content types!
author Chris Cannam
date Wed, 30 Jan 2019 14:56:23 +0000
parents c9c8c49b22d6
children 14747f24ad04
comparison
equal deleted inserted replaced
1603:6d9881e59cc2 1604:8aa1447fe27e
186 getSupportedExtensions(extensions); 186 getSupportedExtensions(extensions);
187 return (extensions.find(extension.toLower()) != extensions.end()); 187 return (extensions.find(extension.toLower()) != extensions.end());
188 } 188 }
189 189
190 bool 190 bool
191 BQAFileReader::supportsContentType(QString) 191 BQAFileReader::supportsContentType(QString type)
192 { 192 {
193 //!!! todo 193 // extremely optimistic, but it's better than rejecting everything
194 return false; 194 //!!! todo: be more sensible
195 return (type.startsWith("audio/"));
195 } 196 }
196 197
197 bool 198 bool
198 BQAFileReader::supports(FileSource &source) 199 BQAFileReader::supports(FileSource &source)
199 { 200 {