- Added bitrate attribute to audio files.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30737 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bruno G. Albuquerque 2009-05-13 00:08:57 +00:00
parent 4a35a822d5
commit a7fe1dbb69

View File

@ -730,6 +730,7 @@ Volume::Mount(const char* device)
inode->AddAttribute("Audio:Title", B_STRING_TYPE, text.titles[i]);
inode->AddAttribute("Audio:Genre", B_STRING_TYPE, text.genre);
inode->AddAttribute("Audio:Track", B_INT32_TYPE, track);
inode->AddAttribute("Audio:Bitrate", B_STRIG_TYPE, "128 kbps");
snprintf(title, sizeof(title), "%02lu:%02lu",
uint32(inode->FrameCount() / kFramesPerMinute),