From f7887e72351d22253923d850eb91df5b9d7b94af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Wed, 9 Feb 2022 13:51:42 +0100 Subject: [PATCH] FileTypeResolver: Add a StreamTypeResolver interface --- taglib/fileref.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/taglib/fileref.h b/taglib/fileref.h index 76e694e4..37f44a0e 100644 --- a/taglib/fileref.h +++ b/taglib/fileref.h @@ -108,6 +108,16 @@ namespace TagLib { audioPropertiesStyle = AudioProperties::Average) const = 0; }; + class TAGLIB_EXPORT StreamTypeResolver : public FileTypeResolver + { + TAGLIB_IGNORE_MISSING_DESTRUCTOR + public: + virtual File *createFileFromStream(IOStream* stream, + bool readAudioProperties = true, + AudioProperties::ReadStyle + audioPropertiesStyle = AudioProperties::Average) const = 0; + }; + /*! * Creates a null FileRef. */