Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv18441/src
Modified Files:
display_playlists.c mp4file.c
Log Message:
* src/mp4file.c: read aacgain if present.
Index: display_playlists.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/display_playlists.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- display_playlists.c 10 Jun 2006 13:39:48 -0000 1.85
+++ display_playlists.c 10 Jun 2006 16:14:15 -0000 1.86
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-10 22:15:19 jcs>
+/* Time-stamp: <2006-06-11 00:56:14 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -66,6 +66,9 @@
};
+void pm_rows_reordered (void);
+
+
/* ---------------------------------------------------------------- */
/* Section for playlist display */
Index: mp4file.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/mp4file.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mp4file.c 28 May 2006 12:35:59 -0000 1.28
+++ mp4file.c 10 Jun 2006 16:14:15 -0000 1.29
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-05-28 20:58:39 jcs>
+/* Time-stamp: <2006-06-11 01:11:48 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -258,6 +258,17 @@
else
track->soundcheck = sc2;
}
+ if (MP4GetMetadataFreeForm(mp4File, "replaygain_track_gain",
+ &ppValue, &pValueSize))
+ {
+ gchar *str;
+ gdouble rg;
+ str = g_malloc0((pValueSize+1)*sizeof(gchar));
+ memcpy(str, ppValue, pValueSize*sizeof(gchar));
+ rg = g_strtod (str, NULL);
+ track->soundcheck = replaygain_to_soundcheck (rg);
+ g_free (str);
+ }
}
}
else
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2