#1 Burning Software

It is currently Thu Dec 19, 2024 4:34 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How do I determine the capacity of a blank disc or RW Disc?
PostPosted: Thu Feb 23, 2006 10:13 pm 
Offline

Joined: Sun Oct 30, 2005 11:26 pm
Posts: 25
How can I determine the capacity in bytes of:

1. A blank Disc?

2. A Rewriteable Disc that will be erased and reused?


I need to beable to create an ISO/Joliet image file that will fit on the disc, so what is the best method of doing this?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 23, 2006 10:55 pm 
Offline

Joined: Sun Oct 30, 2005 11:26 pm
Posts: 25
Also, It appears that the default Block Size is 2KB, is this correct?

If so, then I can calculate the capactiy of a blank disc from:

LARGE_INTEGER Size;
Size.QuadPart = l__TRACK_INFORMATION.m__LONG__FreeLBs * 2048;


For a rewriteable, the size would be:

( m__LONG__FreeLBs + m__LONG__NextWritableAddress ) * 2048;


Does this look correct?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 24, 2006 10:45 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You need to get invisible track size (0xFF) in logical block and multiply it to 2048 bytes for data track or 2352 bytes for audio track.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 11 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group