|
Post by theuving on Dec 27, 2015 9:18:01 GMT -5
I want to save my ratings from gmmp into the MP3, using the database to retrieve the necessary information (way simpler than the backup file in XML-Format). There's the tag POPM, which runs from 0 to 255. In the database the rating runs from 0 (no rating) to 10 (five stars). I will treat all uneven numbers in the DB as the next even number, which leaves me with 5 distinct values and the necessity of a translation to the values from 0-255. One possibility would be to use an even distribution, e.g. 2 becomes 51, 4 becomes 102 and so on. This would give other numbers of stars in Windows Explorer, this program writes other (illogical) values (it uses 1 (1-31) ,64 (32-95),128 (96-159),196 (150-223) and 255 (224-255) for one to five stars). Is there any other program which would have problems with the logical distribution or should I write the same values as Windows Explorer, following a well known standard mentioned in the wikipedia. Has anyone experience with putting ratings in the POPM and reading the values back in another player (or gmmp)?
|
|
|
Post by GoneMAD on Dec 27, 2015 15:20:43 GMT -5
using whats in wikipedia is probably safe. These are the comments i have in my code which part of it looks to be taken from wikipedia
/* 0.0 0 _ No POPM 0.5 13 13 1.0 1 1 1.5 54 54 2.0 64 64 2.5 118 118 3.0 128 128 3.5 186 186 4.0 196 196 4.5 242 242 5.0 255 255 224-255 = 5 stars when READ with Windows Explorer, writes 255 160-223 = 4 stars when READ with Windows Explorer, writes 196 096-159 = 3 stars when READ with Windows Explorer, writes 128 032-095 = 2 stars when READ with Windows Explorer, writes 64 001-031 = 1 stars when READ with Windows Explorer, writes 1
*/
|
|