diff --git a/src/MagnumPlugins/AnyAudioImporter/AnyImporter.cpp b/src/MagnumPlugins/AnyAudioImporter/AnyImporter.cpp index db97ce245..00ed7bf8e 100644 --- a/src/MagnumPlugins/AnyAudioImporter/AnyImporter.cpp +++ b/src/MagnumPlugins/AnyAudioImporter/AnyImporter.cpp @@ -53,7 +53,11 @@ void AnyImporter::doOpenFile(const std::string& filename) { /* Detect type from extension */ std::string plugin; - if(Utility::String::endsWith(normalized, ".ogg")) + if(Utility::String::endsWith(normalized, ".aac")) + plugin = "AacAudioImporter"; + else if(Utility::String::endsWith(normalized, ".mp3")) + plugin = "Mp3AudioImporter"; + else if(Utility::String::endsWith(normalized, ".ogg")) plugin = "VorbisAudioImporter"; else if(Utility::String::endsWith(normalized, ".wav")) plugin = "WavAudioImporter"; diff --git a/src/MagnumPlugins/AnyAudioImporter/AnyImporter.h b/src/MagnumPlugins/AnyAudioImporter/AnyImporter.h index 532a9de93..064e5ddc6 100644 --- a/src/MagnumPlugins/AnyAudioImporter/AnyImporter.h +++ b/src/MagnumPlugins/AnyAudioImporter/AnyImporter.h @@ -70,6 +70,8 @@ of the `Magnum` package and link to the `Magnum::AnyAudioImporter` target. See Supported formats: +- AAC (`*.aac`), loaded with any plugin that provides `AacAudioImporter` +- MP3 (`*.mp3`), loaded with any plugin that provides `Mp3AudioImporter` - OGG Vorbis (`*.ogg`), loaded with any plugin that provides `VorbisAudioImporter` - WAV (`*.wav`), loaded with @ref WavImporter "WavAudioImporter" or any other