#1 Burning Software

It is currently Thu Dec 19, 2024 9:51 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Different IDiscInfo.TotalBlocks values for a same disc
PostPosted: Tue Jul 03, 2007 1:53 pm 
Offline

Joined: Fri Jun 22, 2007 9:48 am
Posts: 7
Hello,

I use IDiscInfo.TotalBlocks to retrieve total disc size.
When i call it for empty/erased CD-RW disc i get one number of blocks(about 700MB).
But i get another value(about 680 MB) for the same disc with some data.
Could you explain me why this difference exist?
Is this difference constantly for CD-RW?
Is this difference related to TOC size?
I hope there aren't so many questions for one topic :wink:

Thanks You,
Alexey


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 03, 2007 2:39 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Hello,

Please tell me what version of StarBurn SDK do you use?
It's normal if you get free space, but not right if you get total disc space.
Burning of blank disc include burning of some
technical info, as well as TOC (for CD equal to 15 MB).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 5:57 am 
Offline

Joined: Fri Jun 22, 2007 9:48 am
Posts: 7
Andrey,

I use StarBurnSDK, version 7.2.20 (build 2007-02-20).
I guess Information below will help you.

IDiskInfo data for blank\erased CD-RW:
FreeLBs 359846 blocks (=702 MB)
TotalSizeInLBs 359846 blocks (=702 MB)
UsedSizeInLbs 0 blocks

IDiskInfo data for CD-RW with some data:
FreeLBs 304847 blocks (=595 MB)
TotalSizeInLBs 348444 blocks (=680 MB)
UsedSizeInLbs 43597 blocks (=85MB)

Thanks for your attention!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 8:17 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Alexey,

Yes, you are right, now StarBurn OCX return total capacity as free space plus used space.
But used space - its only data (without TOC).
And after every track for data CD we additionaly use up some space for TOC.

To get total capacity(with inlcuded TOC size) for data CD you can use NextWritableAddress.

Something like that:

Code:
CDTotalSizeInBytesEx = (DiscInfo.NextWritableAddress + DiscInfo.FreeLBs)*2048;


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 9:12 am 
Offline

Joined: Fri Jun 22, 2007 9:48 am
Posts: 7
Andrey,

Thanks a lot!
It helps me very much.

Do you advice me anything with DVD discs?

"TotalLBs=NWA+FreeLBs" is not right for DVD.
I tested DVD-RW disc and i got data that you can see below:

IDiscInfo.TotalLbs for empty disc is 2298496
IDiscInfo.TotalLbs for disc with data is 2297887
(2297887 - 2298496) = 609 blocks.

It does'nt look like TOC.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 06, 2007 8:10 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Hello Alexey,

Methods to size detecting for DVD differ from DVD type(DVD+R, DVD+RW ...).

Please send letter to me and I send to you updated StarBurn OCX with some size detection correction, and additional burn callbacks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 06, 2007 8:56 am 
Offline

Joined: Fri Jun 22, 2007 9:48 am
Posts: 7
Hello Andrey,

I've sent you a letter to 'and...@...com'


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 06, 2007 2:20 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
Alexey wrote:
Hello Andrey,

I've sent you a letter to 'and...@...com'


Thank, received.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 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