Mercurial > hg > svcore
comparison data/fileio/WavFileReader.cpp @ 783:459235dccff6
Add ogg to supported file extensions if oga is found
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2013 10:01:55 +0000 |
parents | 1424aa29ae95 |
children | f0558e69a074 |
comparison
equal
deleted
inserted
replaced
780:cf466a5d411e | 783:459235dccff6 |
---|---|
183 | 183 |
184 SF_FORMAT_INFO info; | 184 SF_FORMAT_INFO info; |
185 for (int i = 0; i < count; ++i) { | 185 for (int i = 0; i < count; ++i) { |
186 info.format = i; | 186 info.format = i; |
187 if (!sf_command(0, SFC_GET_FORMAT_MAJOR, &info, sizeof(info))) { | 187 if (!sf_command(0, SFC_GET_FORMAT_MAJOR, &info, sizeof(info))) { |
188 extensions.insert(QString(info.extension).toLower()); | 188 QString ext = QString(info.extension).toLower(); |
189 extensions.insert(ext); | |
190 if (ext == "oga") { | |
191 // libsndfile is awfully proper, it says it only | |
192 // supports .oga but lots of Ogg audio files in the | |
193 // wild are .ogg and it will accept that | |
194 extensions.insert("ogg"); | |
195 } | |
189 } | 196 } |
190 } | 197 } |
191 } | 198 } |
192 | 199 |
193 bool | 200 bool |