aboutsummaryrefslogtreecommitdiffstats
path: root/taglib/xm
diff options
context:
space:
mode:
authorMichael Helmling <helmling@mathematik.uni-kl.de>2011-11-02 21:02:35 +0100
committerMichael Helmling <helmling@mathematik.uni-kl.de>2011-11-02 21:02:35 +0100
commit0eaf3a3fbdca2f24e4a4277151edf7a66b7becaf (patch)
tree341396f14d15bd1593ce64608857bed84806b40e /taglib/xm
parent292a377d1ee430c5b67eac7745b7c331ae37afa3 (diff)
Implemented dict interface for more formats.
Now supported: MOD files (IT, MOD, S3M, XM), RIFF files (AIFF, WAV), TrueAudio, WavPack.
Diffstat (limited to 'taglib/xm')
-rw-r--r--taglib/xm/xmfile.cpp10
-rw-r--r--taglib/xm/xmfile.h12
2 files changed, 22 insertions, 0 deletions
diff --git a/taglib/xm/xmfile.cpp b/taglib/xm/xmfile.cpp
index 17aeab0a..bd450c85 100644
--- a/taglib/xm/xmfile.cpp
+++ b/taglib/xm/xmfile.cpp
@@ -379,6 +379,16 @@ Mod::Tag *XM::File::tag() const
return &d->tag;
}
+TagDict XM::File::toDict() const
+{
+ return d->tag.toDict();
+}
+
+void XM::File::fromDict(const TagDict &tagDict)
+{
+ d->tag.fromDict(tagDict);
+}
+
XM::Properties *XM::File::audioProperties() const
{
return &d->properties;
diff --git a/taglib/xm/xmfile.h b/taglib/xm/xmfile.h
index a4ae7244..27257fca 100644
--- a/taglib/xm/xmfile.h
+++ b/taglib/xm/xmfile.h
@@ -61,6 +61,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 XM::Properties for this file. If no audio properties
* were read then this will return a null pointer.
*/