Could we have those methods marked as const
?
AudioFormatReader* createReaderFor (const File& audioFile) const;
AudioFormatReader* createReaderFor (InputStream* audioFileStream) const;
Could we have those methods marked as const
?
AudioFormatReader* createReaderFor (const File& audioFile) const;
AudioFormatReader* createReaderFor (InputStream* audioFileStream) const;
any chance to get that const
?
(perhaps while you change the return type to std::unique_ptr<AudioFormatReader>
?)
It’s a virtual method - changing this would break some of the format implementations out there, and it could be the case that we originally marked it non-const because some weird formats actually need to modify themselves (e.g. they might do caching or something)