From: Jens T. <jl...@sh...> - 2004-07-16 14:22:52
|
I have developed a new iTunesDB browser for podzilla. It provides browsing by song, artist and album so far. Adding other options is real easy however. The data is stored in binary trees to enable sorting (right now a simple alphabetical / track-number based algorithm is used). The data is extracted from the iTunesDB file using libitunesdb ( http://shamrock.dyndns.org/~ln/ipod/libitunesdb_0.4.tar.gz -- see the README for notes on compiling ). So far the parsing of the db is rather slow. It takes about 30 seconds for parsing, sorting, etc. of an 2285 song db. I think it is due to the fact that a lot of malloc()s/free()s are used. If that guess is correct I should be able to speed things up quite a bit. The strings are all stored as UTF8 to save space and speed up processing. I tried printing them correctly with microwindows using GR_TFUTF8 as an argument to GrText but then no text at all was drawn. I did not look much into the problem however. Perhaps someone else knows how to make microwindows render UTF8 text. Please let me know what you think of the patch. Best Regards Jens Taprogge The patch can be found at: http://shamrock.dyndns.org/~ln/ipod/podzilla_20040716.diff -- Jens Taprogge |