[vlc-devel] [PATCH 3/3] taglib: alias monkey's audio replaygain

Anatoliy Anischovich lin.aaa.lin at gmail.com
Wed Jul 23 11:04:16 CEST 2014


>From the Monkey's Audio SDK.

---
 include/vlc_meta.h             | 5 ++++-
 modules/meta_engine/taglib.cpp | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/vlc_meta.h b/include/vlc_meta.h
index c3bf801..302727b 100644
--- a/include/vlc_meta.h
+++ b/include/vlc_meta.h
@@ -161,6 +161,9 @@ VLC_API int input_item_WriteMeta(vlc_object_t *, input_item_t *);
 #define VLC_META_SHOW_NAME          vlc_meta_TypeToLocalizedString( vlc_meta_ShowName )
 #define VLC_META_ACTORS             vlc_meta_TypeToLocalizedString( vlc_meta_Actors )
 
-#define VLC_META_EXTRA_MB_ALBUMID   "MB_ALBUMID"
+#define VLC_META_EXTRA_MB_ALBUMID    "MB_ALBUMID"
+#define VLC_META_EXTRA_RG_PEAK       "RG_PEAK"
+#define VLC_META_EXTRA_RG_RADIO      "RG_RADIO"
+#define VLC_META_EXTRA_RG_AUDIOPHILE "RG_AUDIOPHILE"
 
 #endif
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 7039e86..3e2d7ce 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -207,6 +207,9 @@ static void ReadMetaFromAPE( APE::Tag* tag, demux_meta_t* p_demux_meta, vlc_meta
     SET( "MUSICBRAINZ_TRACKID", TrackID );
 
     SET_EXTRA( "MUSICBRAINZ_ALBUMID", VLC_META_EXTRA_MB_ALBUMID );
+    SET_EXTRA( "PEAK LEVEL", VLC_META_EXTRA_RG_PEAK );
+    SET_EXTRA( "REPLAY GAIN (RADIO)", VLC_META_EXTRA_RG_RADIO );
+    SET_EXTRA( "REPLAY GAIN (ALBUM)", VLC_META_EXTRA_RG_AUDIOPHILE );
 
 #undef SET
 #undef SET_EXTRA
-- 
2.0.1




More information about the vlc-devel mailing list