Rocket Division Software http://www.starburnsoftware.com/forum/ |
|
Problems burning CD's. DVD works fine. http://www.starburnsoftware.com/forum/starburn-sdk-f3/problems-burning-dvd-works-fine-t1986.html |
Page 1 of 1 |
Author: | lukemmiller [ Thu Nov 05, 2009 3:07 pm ] |
Post subject: | Problems burning CD's. DVD works fine. |
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 |
Author: | anton (staff) [ Sat Nov 07, 2009 11:33 pm ] |
Post subject: | Re: Problems burning CD's. DVD works fine. |
Use GetTrackInformation with "invisible track" wildcard to get free burnable space. |
Author: | lukemmiller [ Thu Nov 12, 2009 10:51 pm ] |
Post subject: | Re: Problems burning CD's. DVD works fine. |
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? |
Author: | anton (staff) [ Fri Nov 13, 2009 8:17 am ] |
Post subject: | Re: Problems burning CD's. DVD works fine. |
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). |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |