changeset 1699:11135fc0e183

Fixed WavPack plugin for the new API.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 11 Sep 2007 02:10:49 +0300
parents 314cb383b807
children 42ea52049c76
files src/wavpack/libwavpack.cxx
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/wavpack/libwavpack.cxx	Sun Sep 09 23:52:19 2007 +0300
+++ b/src/wavpack/libwavpack.cxx	Tue Sep 11 02:10:49 2007 +0300
@@ -402,18 +402,18 @@
 
     load_tag(&tag, ctx);
 
-    tuple_associate_string(ti, "title", tag.title);
-    tuple_associate_string(ti, "artist", tag.artist);
-    tuple_associate_string(ti, "album", tag.album);
-    tuple_associate_string(ti, "genre", tag.genre);
-    tuple_associate_string(ti, "comment", tag.comment);
-    tuple_associate_string(ti, "date", tag.year);
-    tuple_associate_string(ti, "quality", WavpackPluginGetQualityString(ctx).c_str());
-    tuple_associate_string(ti, "codec", "WavPack");
+    tuple_associate_string(ti, FIELD_TITLE, NULL, tag.title);
+    tuple_associate_string(ti, FIELD_ARTIST, NULL, tag.artist);
+    tuple_associate_string(ti, FIELD_ALBUM, NULL, tag.album);
+    tuple_associate_string(ti, FIELD_GENRE, NULL, tag.genre);
+    tuple_associate_string(ti, FIELD_COMMENT, NULL, tag.comment);
+    tuple_associate_string(ti, FIELD_DATE, NULL, tag.year);
+    tuple_associate_string(ti, FIELD_QUALITY, NULL, WavpackPluginGetQualityString(ctx).c_str());
+    tuple_associate_string(ti, FIELD_CODEC, NULL, "WavPack");
 
-    tuple_associate_int(ti, "track-number", atoi(tag.track));
-    tuple_associate_int(ti, "year", atoi(tag.year));
-    tuple_associate_int(ti, "length", (int)(WavpackGetNumSamples(ctx) / sample_rate) * 1000);
+    tuple_associate_int(ti, FIELD_TRACK_NUMBER, NULL, atoi(tag.track));
+    tuple_associate_int(ti, FIELD_YEAR, NULL, atoi(tag.year));
+    tuple_associate_int(ti, FIELD_LENGTH, NULL, (int)(WavpackGetNumSamples(ctx) / sample_rate) * 1000);
 
     return ti;
 }