RocketDivision.Com Forum IndexRocketDivision.Com
RDS - software that rocks!
 
 FAQFAQ             
        

DiskType and DISC_TYPE_XA

 
      RocketDivision.Com Forum Index -> StarBurn SDK
View previous topic :: View next topic  
AuthorMessage
richs



Joined: 18 Mar 2005
Posts: 12
Location: Delaware, USA

PostPosted: Fri Oct 21, 2005 2:15 pm    Post subject: DiskType and DISC_TYPE_XA

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.
Back to top
anton (staff)
Site Admin


Joined: 18 Jun 2004
Posts: 1459
Location: Ukraine

PostPosted: Fri Oct 21, 2005 2:54 pm    Post subject: Re: DiskType and DISC_TYPE_XA

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.

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software
Back to top
richs



Joined: 18 Mar 2005
Posts: 12
Location: Delaware, USA

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

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?
Back to top
anton (staff)
Site Admin


Joined: 18 Jun 2004
Posts: 1459
Location: Ukraine

PostPosted: Fri Oct 21, 2005 6:12 pm    Post subject:

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?

_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software
Back to top
anton (staff)
Site Admin


Joined: 18 Jun 2004
Posts: 1459
Location: Ukraine

PostPosted: Fri Nov 11, 2005 7:05 pm    Post subject:

This one has been fixed. Upcoming build would not have bogus names anymore. Thanks!
_________________
Regards,
Anton Kolomyeytsev

Rocket Division Software
Back to top
      RocketDivision.Com Forum Index -> StarBurn SDK
Page 1 of 1