#1 Burning Software

It is currently Fri Apr 11, 2025 4:01 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: How tell if my files will fit on a single disc?
PostPosted: Mon May 23, 2005 6:24 pm 


Top
  
 
 Post subject: Re: How tell if my files will fit on a single disc?
PostPosted: Tue May 24, 2005 1:32 am 
Offline
Site Admin

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 24, 2005 12:45 pm 
Just to make sure I understand your answer to (3) ...

The reason I would need to update the total size during the callbacks is so I know when I've added too many files ... but if I do that update during callbacks, and then compare it with the value I get back from GetSize() (after calling Build), they should give the same answer?

The thing is, I don't need to know when I've added too many files (to fit on the disc), all I need to know is, given the options the user has selected in my program, will their files fit or not? So for me, I think I can build my whole tree, call GetSize(), add 2M and either 15M or 30M, and then if the answer is too large, tell the user they gotta pick different options, and then go back and re-create the tree.


Top
  
 
 Post subject:
PostPosted: Tue May 24, 2005 12:46 pm 
Thinking more about (3) ...

If I add a whole bunch of really small files to the disc, will the file system overhead still be only 2M? It seems like to be careful, I would need to use a more complicated calculation, one that included # of files and # of folders?


Top
  
 
 Post subject:
PostPosted: Wed May 25, 2005 8:22 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
No, the reason is - when you add too many files you can ask user to stop doing this (I'm talking about something like "green-yellow-red" slider at the bottom of "disc compilation" f.e. Nero shows to the user). So user would be asked to remove some files himself from compilation. I'd recommend you doing the same.

Yes, you're correct. Files would be padded to the sector size (2KB) each so true size would be a bit larger then just file size itself. You can easily hovever padd file size yourself after receiving "file add" callback.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 3:33 pm 


Top
  
 
 Post subject:
PostPosted: Thu May 26, 2005 6:49 pm 
Offline
Site Admin

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


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 78 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