I have just started using the newest version of the SDK and with great joy found the new ReadLB() function. Upon using it in my code however, I have found that code which used to take 3 minutes to rip an entire CD now takes 5 minutes to rip one track. Am I doing something wrong? This code originally used AK-Rip, so I know I'm not up against some kind of hardware issue. Here's the basic layout of my code:
result = StarBurn_CdvdBurnerGrabber_CreateEx(&m_hDrive, textresult, sizeof(textresult), &sysresult, &cdbinfo, (PCALLBACK) StarBurnCallback, this, m_DeviceName, 1);
result = StarBurn_CdvdBurnerGrabber_SetSpeeds(m_hDrive, textresult, sizeof(textresult), &sysresult, &cdbinfo, CDVD_SPEED_IS_KBPS_MAXIMUM, CDVD_SPEED_IS_KBPS_MAXIMUM);
StarBurn_SetFastReadTOC(TRUE);
unsigned char buffer[2352];
for(i=0; i<TrackLengthLB; i++)
{
result = StarBurn_CdvdBurnerGrabber_ReadLB(m_hDrive, textresult, sizeof(textresult), &sysresult, &cdbinfo, TrackStartLB + i, buffer, 2352);
/* Write the samples to disk */
}
StarBurn_Destroy(&m_hDrive);
|