Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.03 KB | None | 0 0
  1. } else if (BURN_TYPE == 1) {
  2.         sprintf(what, "AudioCD");
  3.         total_vrcd = total = total_iso = total_audio = temp = 0;
  4.         fStatusBar->SetBarColor(orange);
  5.         if (fLeftList->CountItems() > 0) {
  6.             LeftListItem* item1 = (LeftListItem*)fLeftList->ItemAt(0);
  7.             LeftListItem* item2 = (LeftListItem*)fLeftList->ItemAt(1);
  8.             if (item1->fIconBitmap == fLeftList->fAudioBitmap) {
  9.                 tracks = fLeftList->CountItems();
  10.                 for (i = 0; i < tracks; i++) {
  11.                     item1 = (LeftListItem*)fLeftList->ItemAt(i);
  12.                     f1.SetTo(&item1->fRef, B_READ_ONLY);
  13.                     f1.GetSize(&temp);
  14.                     total_audio += temp;
  15.                     angle_temp[i] = temp / 1024 / 1024;
  16.                     nrtracks++;
  17.                 }
  18.             } else if (fLeftList->CountItems() > 1) {
  19.                 if (item2->fIconBitmap == fLeftList->fAudioBitmap) {
  20.                     tracks = fLeftList->CountItems();
  21.                     for (i = 1; i < tracks; i++) {
  22.                         item1 = (LeftListItem*)fLeftList->ItemAt(i);
  23.                         f1.SetTo(&item1->fRef, B_READ_ONLY);
  24.                         f1.GetSize(&temp);
  25.                         total_audio += temp;
  26.                         angle_temp[i - 1] = temp / 1024 / 1024;
  27.                         nrtracks++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement