On Mar 10, 2011, at 10:51 PM, manner.moe@gmx.de wrote: > >> where the track you just wrote to the HiMD should appear as the last one, in this case >> it's a track from the F-Zero SNES game original soundtrack =). > > I think there is a bug in writing the trkidxXX.hma file. qhimdtransfer > doesn´t show the newly uploaded track, SonicStage cannot read the disc > ("not initialized by SonicStage") and my RH1 doesn´t show the track, too. > There ist a key and EKB number stored in the track info table but these > entries should be zero on mp3 files. > Also the content ID shouldn´t be zero. Just for the record. Thomas and I have independently looked into that bug and Thomas was a bit faster to discover the problem: it's the number of tracks which is not properly updated in the track index file (track count located at 0x100 in the track index file), see [1]. Since "himddump" ignores the track count and simply dumps all valid track info structs it can find, it will display the recently added track. On the other hand, qhimdtransfer honors the track count and thus does show the recently added track, so does SonicStage. I'm not a 100% sure, but I think the bug is inside the function "himd_add_track_info" in libhimd/trackindex.c which does not increase the track count after adding a new track. If not in "himd_add_track_info", the track count has to be increased anywhere else in libhimd/trackindex.c. Adrian [1] https://wiki.physik.fu-berlin.de/linux-minidisc/doku.php?id=himddiskformat#the_track-index_file