#1 Burning Software

It is currently Sun Apr 28, 2024 8:24 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Problems burning CD's. DVD works fine.
PostPosted: Thu Nov 05, 2009 3:07 pm 
Offline

Joined: Mon Jun 15, 2009 6:35 pm
Posts: 28
Using StarBurn SDK V10.5 (Tomahawk) with Delphi 2007.

I have an application that burns Database Backup's (DB is compresssed into 1 file). After creating the file, I compare the file size to the amount of free space on the CD (via StarBurn_CdvdBurnerGrabber_GetDiscFreeSpace) to make sure there is room to write.

If I put in a blank DVD, everything works fine.

If I put in a blank CD my application reports that there is no free space on the CD. If I use the DataBurner sample to copy a file to the CD and then try my application, everything works.

So, I'm guessing that there is some kind of CD initialization that I need to do in order to write to new CD's. Can you point me in the correct direction? Also, is that only necessary with CD's? I would have thought that there were no differences between CD and DVD.

Thanks for your help - Luke


Top
 Profile  
 
 Post subject: Re: Problems burning CD's. DVD works fine.
PostPosted: Sat Nov 07, 2009 11:33 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Use GetTrackInformation with "invisible track" wildcard to get free burnable space.


Top
 Profile  
 
 Post subject: Re: Problems burning CD's. DVD works fine.
PostPosted: Thu Nov 12, 2009 10:51 pm 
Offline

Joined: Mon Jun 15, 2009 6:35 pm
Posts: 28
Thank you that seemed to work but I wanted to make sure that I am calculating correctly.

When I did the StarBurn_CdvdBurnerGrabber_GetTrackInformation with the "invisible track" info, I get returned the number of Free Logical Blocks. I then multiplied by 2048 to get the free space. Is that correct?


Top
 Profile  
 
 Post subject: Re: Problems burning CD's. DVD works fine.
PostPosted: Fri Nov 13, 2009 8:17 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
If you're expecting to burn data disc - yes. For audio you need to multiply by 2352 and for video for 2324 bytes (that's why size is calculated in logical blocks and not in bytes - as we have no clue what exactly you're going to burn).


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

All times are UTC


Who is online

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