summaryrefslogtreecommitdiffstats
path: root/src/itdb.h
diff options
context:
space:
mode:
authorJorg Schuler <jcsjcs@users.sourceforge.net>2007-01-08 10:23:15 +0000
committerJorg Schuler <jcsjcs@users.sourceforge.net>2007-01-08 10:23:15 +0000
commit85d238dd1e850dc41c78a200e50661737965843f (patch)
treef1bc1eceadde12d78ecccb9ccfc5789f3b1f2835 /src/itdb.h
parente524e1ba62b67e9918f7a6a5be1131e126a54e1e (diff)
downloadlibgpod-85d238dd1e850dc41c78a200e50661737965843f.tar.gz
libgpod-85d238dd1e850dc41c78a200e50661737965843f.tar.xz
libgpod-85d238dd1e850dc41c78a200e50661737965843f.zip
* tests/Makefile.am: cleanup
* src/itdb.h src/itdb_itunesdb.c: renamed unk156 to skipcount and unk160 to last_skipped. Added unk244, gapless_data, unk252, gapless_track_flag, gapless_album_flag, recent_skipcount. Added handling of skipcount and last_skipped to playount file handling. * src/itdb_private.h: added skipcount and last_skipped to struct playcount. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1348 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/itdb.h')
-rw-r--r--src/itdb.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/itdb.h b/src/itdb.h
index 09bf928..3272c12 100644
--- a/src/itdb.h
+++ b/src/itdb.h
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-11-24 20:51:44 jcs>
+/* Time-stamp: <2007-01-06 20:47:00 jcs>
|
| Copyright (C) 2002-2006 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -741,7 +741,12 @@ struct _Itdb_Track
guint32 unk148; /* unknown - used for Apple Store DRM songs
(always 0x01010100?), zero otherwise */
guint32 unk152; /* unknown */
- guint32 unk156, unk160;
+ guint32 skipcount; /* Number of times the track has been skipped.
+ Formerly unk156 (added in dbversion 0x0c) */
+ guint32 recent_skipcount; /* number of times track was skipped since
+ last sync */
+ guint32 last_skipped;/* Date/time last skipped. Formerly unk160
+ (added in dbversion 0x0c) */
guint8 has_artwork; /* 0x01: artwork is present. 0x02: no artwork is
present for this track (used by the iPod to
decide whether to display Artwork or not) */
@@ -813,7 +818,19 @@ struct _Itdb_Track
guint32 unk220; /* Has something to do with protected files -
set to 0x0 for non-protected files. */
guint32 unk224;
- guint32 unk228, unk232, unk236, unk240;
+ guint32 unk228, unk232, unk236, unk240, unk244;
+ guint32 gapless_data;/* some magic number needed for gapless playback
+ (added in dbversion 0x13) It has been observed
+ that gapless playback does not work if this is
+ set to zero. This number is related to the the
+ filesize in bytes, but it is a couple of bytes
+ less than the filesize. Maybe ID3 tags
+ etc... taken off? */
+ guint32 unk252;
+ guint16 gapless_track_flag; /* if 1, this track has gapless playback data
+ (added in dbversion 0x13) */
+ guint16 gapless_album_flag; /* if 1, this track does not use crossfading
+ in iTunes (added in dbversion 0x13) */
/* Chapter data: defines where the chapter stops are in the track,
as well as what info should be displayed for each section of