[haiku-development] Re: Dealing with AudioCDs

Bruno Albuquerque wrote:
Humdinger wrote:

Apparently the cddb lookup daemon uses the folder /boot/home/cd/ to store all the details it finds out as text files with the name "[Artist] - [Album]" and the info to artist, album, CD playing time, and all song titles and their playing time.

No. The CDPlayer app does that. The cddb lookup daemon is not done yet (I needed to fix BNetBuffer and forgot about it. Will do this this weekend).

Nice.

These text files also get an attribute (CD:key) with an ID to recognize a re-inserted CD. Plus an attribute for artist/album/song (CD:tracks) and an empty genre (Audio:Genre) attribute.

Again, if this is inside ~/cd dir, this is CD Player, not the cddb lookup daemon.

OK, then I always mistook CDPlayer's magic for the non-existing cddb...

This is the first source for confusion: I kept changing the text file and wondered why the changes didn't take. Then I found out about the attributes...

The attributes where? In the CD mount point or in the ~cd dir?

The ~/cd dir.

I see the advantage of using attributes, but IMHO in this case, the contents of the text file should be parsed and used by applications, esp. because:

No, they should not. As soon as the cddb lookup dameon is done, it will handle all this. And the user can still manually change whatever he/she needs.

OK, that's great. Hopefully CDPlayer will be changed to use cddb then.

... Strange, I swear it _was_ created. After deleting it and reinserting the CD it isn't created any more, though...

Because you didn't start CD Player again? :)

Looks like I have to restart the vmware-image between disk-jockeying. :)

Anyway: It makes sense to create these "unknown-artist" files and let the user enter the info by hand. That's not easily possible when the data is used from the attribute.

This data is only used by CD Player. I gues sthe reason it keeps the data there is because you can use CD Player even if the CD is not mounted while cdda-fs requires the CD to be mounted. CD Player could still use cdda-fs's data as founf in its settings dir, tough.

I'll wait for your cddb work to be finished and then re-evaluate the situation and maybe file a ticket for CDPlayer to adjust to its new 'daemon haunted world'.


Regards,
Humdinger

--
--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-
Deutsche Haiku News @ http://www.haiku-gazette.de

Other related posts: