Prev Previous Post   Next Post Next
Old 11-26-2009, 07:26 AM
hanselda hanselda is offline
Junior Member
Join Date: Nov 2009
Posts: 5
Default The format of MTABLE.SYS

Yes it is possible to retrieve the rating from MSC mode. One has to dig into the format of the MTABLE.SYS file under the root directory. The format is basically as follow:

The rating information starts from address somewhere aound 0xA4130, each rating occupies 4 byte, first one is always 0x80, the next one is the rating 0x00 to 0x05, followed by two byte 0x0000. To find out which track this rating corresponds to one has to look into the starting of this file, where the corresponding track information is listed in the same order. The information is stored in the following format:

'path' 0x0000 'filename' 0x000000 "track name" 0x0000 "artist" 0x0000 "album" 0x0000FFFF0000 "genre" 0x0000 'track/total(8 byte long)'

Word in '' means the encoding is in ASCII or other extensions compatible to vfat.
Word in "" is in UTF-16.
The path is expressed as, for example 'mmc:0:\MUSIC\NAME'
The example for 'track/total' is '00000410', means the track is 4/10

A example for such usage is shown in this script:
scrobble for sansa clip to

I have not worked out the to-go list yet. I think it is also in the MTABLE.SYS, should start somewhere around 0x75300. I will post the result here if I can find it out.
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 12:22 AM.