Rocket Division Software
http://www.starburnsoftware.com/forum/

Display summary of contents of disc?
http://www.starburnsoftware.com/forum/starburn-sdk-f3/display-summary-contents-disc-t370.html
Page 1 of 1

Author:  betty crokker [ Mon Apr 18, 2005 8:21 pm ]
Post subject:  Display summary of contents of disc?

My last post today :-)

If I ask the user to insert a disc, and I determine that the disc is not empty (my previous post), what is the best way to get a quick summary as to what is on the disc, so I can display that information to the user?

What I would like to be able to do, is to give the user information like
"This disc contains audio tracks"
"This disc contains a movie"
"This disc contains files such as AUTOEXEC.BAT and CONFIG.SYS"

Do you have any functions that help me determine this kind of information?

Thanks!

Author:  anton (staff) [ Mon Apr 18, 2005 9:18 pm ]
Post subject:  Re: Display summary of contents of disc?

You need to call GetTOCInformation(...) and parse TOC_ENTRY structure for each track. m__BOOLEAN__IsData for all of the tracks means "pure data disc", m__BOOLEAN__IsAudio for all of the tracks means "pure audio disc", combination of m__BOOLEAN__IsData == TRUE and m__BOOLEAN__IsAudio == TRUE means "mixed mode or enhanced disc" and if you'll find single data track with m__UCHAR__TrackMode == 0x02 and m__UCHAR__MODE2Form == 0x02 this means you have "video or super video disc".

You can always get device symbolic link from StarBurn_GetDeviceNameFromDeviceAddress(...) for ASPI (or you know the drive letter yourself if you deal with SPTI). This would give you ability to try CreateFile( ... ) on generated suspected path. Say "D:\AutoExec.bat". So you'll be able to say which files root folder of the disc contains.

That's all :)

betty crokker wrote:
My last post today :-)

If I ask the user to insert a disc, and I determine that the disc is not empty (my previous post), what is the best way to get a quick summary as to what is on the disc, so I can display that information to the user?

What I would like to be able to do, is to give the user information like
"This disc contains audio tracks"
"This disc contains a movie"
"This disc contains files such as AUTOEXEC.BAT and CONFIG.SYS"

Do you have any functions that help me determine this kind of information?

Thanks!

Author:  Guest [ Tue Apr 19, 2005 3:47 pm ]
Post subject: 

Excellent! Thanks!

Is there any standard way to display some information about the disc itself - like when it was created, what application created it, that kind of thing?

Author:  anton (staff) [ Tue Apr 19, 2005 3:58 pm ]
Post subject: 

You can read LBA 16 of the disc, parse ISO9660 "primary volume descriptor" structure. If you want we may "decorate" it and move from the private StarBurn headers to public StarBurn.h header.

Anonymous wrote:
Excellent! Thanks!

Is there any standard way to display some information about the disc itself - like when it was created, what application created it, that kind of thing?

Author:  deepakp [ Thu May 20, 2010 10:23 am ]
Post subject:  Re: Display summary of contents of disc?

Hello Sir,
Is all the above discussed information available in StarBurnX like GetTOCInformation?
Thank you.

Author:  anton (staff) [ Thu May 20, 2010 10:33 am ]
Post subject:  Re: Display summary of contents of disc?

No. "You may read" actually means "you may read from the disc yourself".

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/