#1 Burning Software

It is currently Thu Dec 19, 2024 8:59 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: StarBurn_CdvdBurnerGrabber_ReadLB is insanely slow
PostPosted: Thu Feb 15, 2007 5:48 pm 
Offline

Joined: Thu Jun 22, 2006 8:20 pm
Posts: 35
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);


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 15, 2007 5:50 pm 
Offline

Joined: Thu Jun 22, 2006 8:20 pm
Posts: 35
PS: This code had been using StarBurn_CdvdBurnerGrabber_GrabTrack() in the last version of the SDK, with the rest of the code unchanged.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 15, 2007 9:30 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You have to read with multiple sectors to get acceptable speed. Reading with one logical block per request is always very slow. Fix your code :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 15, 2007 9:44 pm 
Offline

Joined: Thu Jun 22, 2006 8:20 pm
Posts: 35
Yes, naturally, but there doesn't seem to be any function for doing that?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 16, 2007 10:31 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Stupid me! Please drop me a message and I'd issue you with updated version of the StarBurn with block read enabled. Also it has fixed the issue with DVD-ROM recognition you've mentioned in the other thread. Thanks!

novalis wrote:
Yes, naturally, but there doesn't seem to be any function for doing that?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 2:42 pm 
Offline

Joined: Thu Jun 22, 2006 8:20 pm
Posts: 35
Okay, I have the latest DLL in place and the new ReadRaw() function is allowing me to read much faster, thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 6:35 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Good! Thanks :)

novalis wrote:
Okay, I have the latest DLL in place and the new ReadRaw() function is allowing me to read much faster, thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group