#1 Burning Software

It is currently Fri Mar 29, 2024 1:53 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Display summary of contents of disc?
PostPosted: Mon Apr 18, 2005 8:21 pm 
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!


Top
  
 
 Post subject: Re: Display summary of contents of disc?
PostPosted: Mon Apr 18, 2005 9:18 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
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!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 19, 2005 3:47 pm 
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?


Top
  
 
 Post subject:
PostPosted: Tue Apr 19, 2005 3:58 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
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?


Top
 Profile  
 
 Post subject: Re: Display summary of contents of disc?
PostPosted: Thu May 20, 2010 10:23 am 
Offline

Joined: Mon Aug 25, 2008 1:50 pm
Posts: 394
Hello Sir,
Is all the above discussed information available in StarBurnX like GetTOCInformation?
Thank you.


Top
 Profile  
 
 Post subject: Re: Display summary of contents of disc?
PostPosted: Thu May 20, 2010 10:33 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
No. "You may read" actually means "you may read from the disc yourself".


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