[haiku-development] Re: Dealing with AudioCDs
- From: Bruno Albuquerque <bga@xxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Tue, 16 Dec 2008 17:38:24 -0200
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).
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.
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?
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.
If a CD isn't found by cddb a generic "Artist - AudioCD" is created in
~/cd/.
Again, CD Player.
... 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? :)
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.
Then there's cdda, which stores its info on AudioCDs at
~/config/settings/cdda/. These are non-user editable files with cryptic
names. Wouldn't is simplify things, if the cddb method, files and
locations were reused?
No. CD Player should use CDDA's stuff. Not the other way around.
You could still have a user open an un-identified CD and fill in the
artist/album/track attributes and have cdda convert and merge that into
the text file.
CDDA-FS handles that.
-Bruno
Other related posts: