From: <ny...@us...> - 2007-02-23 09:37:32
|
Revision: 392 http://svn.sourceforge.net/pmplib/?rev=392&view=rev Author: nyaochi Date: 2007-02-23 01:37:33 -0800 (Fri, 23 Feb 2007) Log Message: ----------- Added disc_number and total_discs fields to pmp_music_record_t although libgmi does not set them at this moment. Modified Paths: -------------- trunk/pmplib/include/pmplib/pmp.h trunk/pmplib/lib/pmp_ipod/ipod.c Modified: trunk/pmplib/include/pmplib/pmp.h =================================================================== --- trunk/pmplib/include/pmplib/pmp.h 2007-02-23 09:23:01 UTC (rev 391) +++ trunk/pmplib/include/pmplib/pmp.h 2007-02-23 09:37:33 UTC (rev 392) @@ -398,6 +398,18 @@ uint32_t total_tracks; /** + * Disc number. + * e.g., 1 + */ + uint32_t disc_number; + + /** + * Total number of discs in this series. + * e.g., 2 + */ + uint32_t total_discs; + + /** * Sample rate in [Hz]. * e.g., 44100 */ Modified: trunk/pmplib/lib/pmp_ipod/ipod.c =================================================================== --- trunk/pmplib/lib/pmp_ipod/ipod.c 2007-02-23 09:23:01 UTC (rev 391) +++ trunk/pmplib/lib/pmp_ipod/ipod.c 2007-02-23 09:37:33 UTC (rev 392) @@ -174,6 +174,8 @@ mhit_data->year = 2000; mhit_data->bitrate = rec->bitrate / 1000; mhit_data->samplerate = rec->sample_rate; + mhit_data->disc_number = rec->disc_number; + mhit_data->total_discs = rec->total_discs; mhit_data->date_added = rec->ts_import; mhit_data->dbid = 0; mhit_data->unk9 = 0xFFFF; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |