# HG changeset patch # User Chris Cannam # Date 1364464915 0 # Node ID 459235dccff6d4d5f2190131b6f5826a77b3cde7 # Parent cf466a5d411ed912b6c495d37eccf1ec571a3396 Add ogg to supported file extensions if oga is found diff -r cf466a5d411e -r 459235dccff6 data/fileio/WavFileReader.cpp --- a/data/fileio/WavFileReader.cpp Wed Mar 27 16:53:31 2013 +0000 +++ b/data/fileio/WavFileReader.cpp Thu Mar 28 10:01:55 2013 +0000 @@ -185,7 +185,14 @@ for (int i = 0; i < count; ++i) { info.format = i; if (!sf_command(0, SFC_GET_FORMAT_MAJOR, &info, sizeof(info))) { - extensions.insert(QString(info.extension).toLower()); + QString ext = QString(info.extension).toLower(); + extensions.insert(ext); + if (ext == "oga") { + // libsndfile is awfully proper, it says it only + // supports .oga but lots of Ogg audio files in the + // wild are .ogg and it will accept that + extensions.insert("ogg"); + } } } }