- Exported CDDB id trough the CD:cddbid attribute.

- Tracks are now called "Track XX" instead of "XX".
- We need no stinking TLAs! :)

Next step, porting CDDBLinkD to Haiku.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26974 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bruno G. Albuquerque
2008-08-14 17:39:33 +00:00
parent 70e2d4ac43
commit c4cbe945fe
@@ -568,6 +568,10 @@ Volume::Mount(const char* device)
return status;
}
// add CD:cddbid attribute.
fRootNode->AddAttribute("CD:cddbid", B_UINT32_TYPE, true,
(const uint8 *)&fDiscID, 4);
cdtext text;
if (read_cdtext(fDevice, text) < B_OK)
dprintf("CDDA: no CD-Text found.\n");
@@ -595,14 +599,14 @@ Volume::Mount(const char* device)
if (text.titles[i] != NULL) {
if (text.artists[i] != NULL) {
snprintf(title, sizeof(title), "%02ld. %s - %s.wav", track,
snprintf(title, sizeof(title), "%02ld. %s - %s", track,
text.artists[i], text.titles[i]);
} else {
snprintf(title, sizeof(title), "%02ld. %s.wav", track,
snprintf(title, sizeof(title), "%02ld. %s", track,
text.titles[i]);
}
} else
snprintf(title, sizeof(title), "%02ld.wav", track);
snprintf(title, sizeof(title), "Track %02ld", track);
// remove '/' and '\n' from title
for (int32 j = 0; title[j]; j++) {