Logo Search packages:      
Sourcecode: k9copy version File versions  Download package

void K3bDevice::Device::readIsrcMcn ( K3bDevice::Toc toc  )  const

Append ISRC and MCN to the TOC if found This has been moved to a seperate method since it can take a very long time to scan for all ISRCs.

Definition at line 910 of file k3bdevice.cpp.

References K3bDevice::Toc::setMcn(), and type().

{
  // read MCN and ISRC of all tracks
  QCString mcn;
  if( readMcn( mcn ) ) {
    toc.setMcn( mcn );
    kdDebug() << "(K3bDevice::Device) found MCN: " << mcn << endl;
  }
  else
    kdDebug() << "(K3bDevice::Device) no MCN found." << endl;

  for( unsigned int i = 1; i <= toc.count(); ++i ) {
    QCString isrc;
    if( toc[i-1].type() == Track::AUDIO ) {
      if( readIsrc( i, isrc ) ) {
      kdDebug() << "(K3bDevice::Device) found ISRC for track " << i << ": " << isrc << endl;
      toc[i-1].setIsrc( isrc );
      }
      else
      kdDebug() << "(K3bDevice::Device) no ISRC found for track " << i << endl;
    }
  }
}


Generated by  Doxygen 1.6.0   Back to index