mirror of
https://github.com/taglib/taglib.git
synced 2025-07-22 15:04:24 -04:00
Implemented dict interface for more formats.
Now supported: MOD files (IT, MOD, S3M, XM), RIFF files (AIFF, WAV), TrueAudio, WavPack.
This commit is contained in:
@ -65,6 +65,16 @@ Mod::Tag *IT::File::tag() const
|
||||
return &d->tag;
|
||||
}
|
||||
|
||||
TagDict IT::File::toDict() const
|
||||
{
|
||||
return d->tag.toDict();
|
||||
}
|
||||
|
||||
void IT::File::fromDict(const TagDict &tagDict)
|
||||
{
|
||||
d->tag.fromDict(tagDict);
|
||||
}
|
||||
|
||||
IT::Properties *IT::File::audioProperties() const
|
||||
{
|
||||
return &d->properties;
|
||||
|
@ -60,6 +60,18 @@ namespace TagLib {
|
||||
|
||||
Mod::Tag *tag() const;
|
||||
|
||||
/*!
|
||||
* Implements the unified tag dictionary interface -- export function.
|
||||
* Forwards to Mod::Tag::toDict().
|
||||
*/
|
||||
TagDict toDict() const;
|
||||
|
||||
/*!
|
||||
* Implements the unified tag dictionary interface -- import function.
|
||||
* Forwards to Mod::Tag::fromDict().
|
||||
*/
|
||||
void fromDict(const TagDict &);
|
||||
|
||||
/*!
|
||||
* Returns the IT::Properties for this file. If no audio properties
|
||||
* were read then this will return a null pointer.
|
||||
@ -74,6 +86,7 @@ namespace TagLib {
|
||||
*/
|
||||
bool save();
|
||||
|
||||
|
||||
private:
|
||||
File(const File &);
|
||||
File &operator=(const File &);
|
||||
|
Reference in New Issue
Block a user