View Single Post
Old 10-16-2011, 10:46 AM   #3
SteveEisenberg
Grand Sorcerer
SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.SteveEisenberg ought to be getting tired of karma fortunes by now.
 
Posts: 7,034
Karma: 39379388
Join Date: Jun 2008
Location: near Philadelphia USA
Device: Kindle Kids Edition, Fire HD 10 (11th generation)
Quote:
Originally Posted by NiLuJe View Post
. . . touch would be your friend, if you were on an Unix system . B
You know, when you tell an old-time Basic programmer that there's something a sexier platform can do VB can't, it gets the juices flowing . . .

Anyway, I tried updating, from code, each of the following attributes to see if it changed the order of play for an MP3:

-- LastAccessTime
-- CreationDate
-- LastWriteTime

No effect!

Than I tried toggling these attributes:

-- Offline
-- Hidden
-- Encyrpted

Nothing. It may be that the Kindle doesn't even store some of these, although changing them raises no error.

Renaming, and then renaming back, also made no difference.

Last, I tried to change 1 random byte in a MP3 and then change it back, since this can be done far faster than reading and writing an entire file. Actually, I didn't do that in VB, since I had forgotten how, but, as proof of concept, did it using the XVI32 freeware hex editor. No effect.

So, at least for now, I'm going to stick with the slow full rewrite of all MP3's. Last night, when I had 97 MP3 files, totalling 693 MB, on my K3, full track randomization took 9 minutes. The good part is that, in the help, I can assure users that the program is safe because it only does what they can, and probably would, do manually with Windows Explorer. Plus, few MP3 users will actually tolerate something that slow, so if asked for MP3 support, I'll have time to give it

I just realized that I can also provide a simple rewind feature, although it will take just as long as track randomization.

Last edited by SteveEisenberg; 10-16-2011 at 10:48 AM.
SteveEisenberg is offline   Reply With Quote