#1 Burning Software

It is currently Thu Dec 19, 2024 4:50 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: DiskType and DISC_TYPE_XA
PostPosted: Fri Oct 21, 2005 2:15 pm 
Offline

Joined: Fri Mar 18, 2005 7:02 pm
Posts: 13
Location: Delaware, USA
How do I determine if a CD is type XA?

Do I test m__UCHAR__DiscType from DISK_INFORMATION along with DISC_TYPE_XA?
For Example:
Code:
if (m__UCHAR__DiscType & DISC_TYPE_XA)
    bXA = TRUE;

If so, do I need to use a mask like below when checking for the actual disk type?
Code:
switch (m__UCHAR__DiscType & 0xf)
{
    case DISC_TYPE_CDROM:
    case DISC_TYPE_CDR:
}

Thanks for the help.


Top
 Profile  
 
 Post subject: Re: DiskType and DISC_TYPE_XA
PostPosted: Fri Oct 21, 2005 2:54 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Just check m__UCHAR__DiscType for DISC_TYPE_CDDA, CDI or XA. Like

if ( Xxx.m__UCHAR__DiscType == DISC_TYPE_CDDA )
{
// Do something here...
}

richs wrote:
How do I determine if a CD is type XA?

Do I test m__UCHAR__DiscType from DISK_INFORMATION along with DISC_TYPE_XA?
For Example:
Code:
if (m__UCHAR__DiscType & DISC_TYPE_XA)
    bXA = TRUE;

If so, do I need to use a mask like below when checking for the actual disk type?
Code:
switch (m__UCHAR__DiscType & 0xf)
{
    case DISC_TYPE_CDROM:
    case DISC_TYPE_CDR:
}

Thanks for the help.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 5:35 pm 
Offline

Joined: Fri Mar 18, 2005 7:02 pm
Posts: 13
Location: Delaware, USA
But, DISC_TYPE_CDDA == DISC_TYPE_CDROM, so are these the same?

Why are DISC_TYPE_CDDA, DISC_TYPE_CDI, and DISC_TYPE_XA not part of typedef enum _DISC_TYPE?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 6:12 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
No. There are DISC_TYPE_XXX defines (they are m__UCHAR__DiscType from DISC_INFORMATION_STRUCTURE) and DISC_TYPE_XXX enum members. They are returned as GetInsertedDiscType(...) API call result.

I think it's a mess so should we change defines to some other text (not to confuse the users)?

richs wrote:
But, DISC_TYPE_CDDA == DISC_TYPE_CDROM, so are these the same?

Why are DISC_TYPE_CDDA, DISC_TYPE_CDI, and DISC_TYPE_XA not part of typedef enum _DISC_TYPE?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 11, 2005 7:05 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
This one has been fixed. Upcoming build would not have bogus names anymore. Thanks!


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

All times are UTC


Who is online

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