Make AudioFormat::getFileExtensions virtual

Would it hurt anything to make the method virtual? I would like to be able to report in a delayed manner (after calling AudioFormatManager::registerFormat) if my subclass supports the file extensions or not. I could not so far come up with any better solution than making getFileExtensions virtual.

Usually when I see a post titled “can [XYZ] be made virtual?” I expect the answer to be “NO!”

…but actually in this case, yeah, no problem! Will sort it out shortly…

1 Like

Thanks for also changing the signature so that I can simply return an empty StringArray by value. :wink: