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:
Michael Helmling
2011-11-02 21:02:35 +01:00
parent 292a377d1e
commit 0eaf3a3fbd
20 changed files with 315 additions and 29 deletions

View File

@ -67,6 +67,16 @@ Mod::Tag *S3M::File::tag() const
return &d->tag;
}
TagDict S3M::File::toDict() const
{
return d->tag.toDict();
}
void S3M::File::fromDict(const TagDict &tagDict)
{
d->tag.fromDict(tagDict);
}
S3M::Properties *S3M::File::audioProperties() const
{
return &d->properties;

View File

@ -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 S3M::Properties for this file. If no audio properties
* were read then this will return a null pointer.