TagArchive: add TagBuilder overload with ScanGenericTags() fallback

Load APE/ID3 tags from archives.
This commit is contained in:
Max Kellermann
2016-02-26 13:20:30 +01:00
parent 677334f5a9
commit c4537fe6f6
3 changed files with 28 additions and 3 deletions

View File

@@ -24,6 +24,7 @@
class Path;
struct TagHandler;
class TagBuilder;
/**
* Scan the tags of a song file inside an archive. Invokes matching
@@ -36,4 +37,15 @@ struct TagHandler;
bool
tag_archive_scan(Path path, const TagHandler &handler, void *handler_ctx);
/**
* Scan the tags of a song file inside an archive. Invokes matching
* decoder plugins, and falls back to generic scanners (APE and ID3)
* if no tags were found (but the file was recognized).
*
* @return true if the file was recognized (even if no metadata was
* found)
*/
bool
tag_archive_scan(Path path, TagBuilder &builder);
#endif