#1 Burning Software

It is currently Wed Apr 24, 2024 11:57 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Is Disc blank and disk space
PostPosted: Sat Sep 18, 2004 1:09 pm 
Offline

Joined: Thu Aug 26, 2004 12:58 am
Posts: 45
1. How to know if the disc is blank (no track or has one blank track )?

2.Can i get total space and free space (MB) of the disc?

3. If do a quik erase how to get the process progress ?

Thank you.


Top
 Profile  
 
 Post subject: Re: Is Disc blank and disk space
PostPosted: Sat Sep 18, 2004 2:40 pm 
Offline

Joined: Mon May 31, 2004 6:22 am
Posts: 134
Hi,

abs wrote:
1. How to know if the disc is blank (no track or has one blank track )?


Check m__UCHAR__DiscStatus of DISC_INFORMATION.
It will have one blank track.

abs wrote:
2.Can i get total space and free space (MB) of the disc?


Check m__LONG__FreeLBs of TRACK_INFORMATION
To known total space you need to convert m__UCHAR__LastPossibleStartTime of DISC_INFORMATION to unsigned long.

abs wrote:
3. If do a quik erase how to get the process progress ?


You need to get current write speed and multiply it to the size of TOC.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 19, 2004 2:32 pm 
Offline

Joined: Thu Aug 26, 2004 12:58 am
Posts: 45
Q2:
Convert m__UCHAR__LastPossibleStartTime(Packed Array[ 1..4 ] Of Byte;) to unsigned long,
I'm sorry ,I still do not know how to Convert.

Q3.Which parameter point out the size of TOC?

TOC_INFORMATION = Packed Record
m__BOOLEAN__IsValid : Boolean;
m__BOOLEAN__IsDVD : Boolean;
m__USHORT__ProtectedDVDRegions : Word;
m__UCHAR__BusKeyForDiscKey : Packed Array[ 1..5 ] Of Byte;
m__UCHAR__NumberOfSessions : Byte;
m__UCHAR__NumberOfTracks : Byte;
m__UCHAR__NumberOfUnsortedEntries : Byte;
m__TOC_ENTRY : Packed Array[ 1..NUMBER_OF_TRACKS ] Of TOC_ENTRY;
m__FULL_TOC_ENTRY_RAW : Packed Array[ 1..NUMBER_OF_TRACKS ] Of FULL_TOC_ENTRY_RAW;
m__FULL_TOC_ENTRY_RAW__Unsorted : Packed Array[ 1..NUMBER_OF_TRACKS ] Of FULL_TOC_ENTRY_RAW;
End;


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 19, 2004 4:41 pm 
Offline

Joined: Mon May 31, 2004 6:22 am
Posts: 134
abs wrote:
Q2:
Convert m__UCHAR__LastPossibleStartTime(Packed Array[ 1..4 ] Of Byte;) to unsigned long,
I'm sorry ,I still do not know how to Convert.


(
(m__UCHAR__LastPossibleStartTime[4]<<24) +
(m__UCHAR__LastPossibleStartTime[3]<<16) +
(m__UCHAR__LastPossibleStartTime[2]<<8) +
(m__UCHAR__LastPossibleStartTime[1])
)

abs wrote:
Q3.Which parameter point out the size of TOC?


Size of TOC = 15MB.
But, sorry, It was my mistake. To calculate the time of Fast Erase you should divide 15Mb by your current write speed.
This is true only for FAST erasing. For FULL erasing the write speed may vary during erasing process.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 20, 2004 12:48 pm 
Offline

Joined: Thu Aug 26, 2004 12:58 am
Posts: 45
Q2; I have tested


(m__UCHAR__LastPossibleStartTime[4]<<24) +
(m__UCHAR__LastPossibleStartTime[3]<<16) +
(m__UCHAR__LastPossibleStartTime[2]<<8 +
(m__UCHAR__LastPossibleStartTime[1])


I got 0 from CD-R(full of data) and DVD-RW(blank) , i think if you add
a parameter in DISC_INFORMATION Struct to point out total size of disc
(CD/DVD) will be easier to use .

thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 20, 2004 2:15 pm 
Offline

Joined: Mon May 31, 2004 6:22 am
Posts: 134
abs wrote:
Q2; I have tested
I got 0 from CD-R(full of data) and DVD-RW(blank) , i think if you add
a parameter in DISC_INFORMATION Struct to point out total size of disc
(CD/DVD) will be easier to use .
thank you.


Ops, in such case, there is now way to know the total size of the disc.
I think it will be better to use only FREE space.
Look at Nero. It uses "Total Capacity" = only recorded size and "Available capacity" = free space.

Bye.


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

All times are UTC


Who is online

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