#1 Burning Software

It is currently Mon May 13, 2024 8:58 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: flag write modes
PostPosted: Fri Oct 24, 2008 9:24 pm 
Offline

Joined: Tue Sep 23, 2008 3:52 am
Posts: 58
SupportedModesWrite in starburnX returns flags (as set of flags). I'm assuming that means the value of all the flags combined. Is that the case? What is the flag/value for each of the modes?

Side note/request: There really should be a way to enumerate the available modes like you would drive speeds.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 24, 2008 9:56 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
ProbeSupportedWriteModes(...) exists inside StarBurn core. So it should not be a problem to wrap it inside StarBurnX (if not done yet).


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2008 8:35 pm 
Offline

Joined: Tue Sep 23, 2008 3:52 am
Posts: 58
...so what are the flag values/which mode(s) does each value correlate to?

This is what I have so far, let me know if they are correct and the rest of them please:
3,11,15 = T.A.O
3,11,15 = S.A.O
11 = D.A.O
11,15 = D.A.O Raw

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2008 1:10 pm 
Offline

Joined: Thu Dec 13, 2007 8:44 am
Posts: 609
Hello,

1) The "STARBURN_WRITE_MODE" type is a flagged enum

STARBURN_WRITE_MODE_AUTO = 0
STARBURN_WRITE_MODE_TAO = 1
STARBURN_WRITE_MODE_SAO = 2
STARBURN_WRITE_MODE_DAO_16 = 4
STARBURN_WRITE_MODE_DAO_96 = 8

2) .. "SupportedModesWrite" - this property returns the information (as the set of flags) about the Write Modes which are supported by current device.

3) You can use the returned value in the next manner:

С# example - DiscInfo

Code:
private void RefreshSupportedWriteModes(DriveInfo pDriveInfo)
   {
       STARBURN_WRITE_MODE supportedWriteMode = (STARBURN_WRITE_MODE)pDriveInfo.SupportedModesWrite;

       chkDAO_PQ.Checked  = ((supportedWriteMode & STARBURN_WRITE_MODE.STARBURN_WRITE_MODE_DAO_16)==0)?false:true;
       chkDAO_PW.Checked  = ((supportedWriteMode & STARBURN_WRITE_MODE.STARBURN_WRITE_MODE_DAO_96) == 0)?false:true;

        ... etc.   
   }


Regards,

Dmitry


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2008 6:49 pm 
Offline

Joined: Tue Sep 23, 2008 3:52 am
Posts: 58
I can't use the example the way you have it, but the flags that you gave me solved my problem.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2008 11:04 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Your suggestions about the sample please.

Qvae wrote:
I can't use the example the way you have it, but the flags that you gave me solved my problem.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2008 11:58 pm 
Offline

Joined: Tue Sep 23, 2008 3:52 am
Posts: 58
You get me wrong, the reason I can't use it is because I'm using a different language that dima's example wont work with, that's why I needed the actual flag values, and the cumulative values. So there is no real suggestion I have.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2008 7:01 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Whoops, sorry in such a case :)

Qvae wrote:
You get me wrong, the reason I can't use it is because I'm using a different language that dima's example wont work with, that's why I needed the actual flag values, and the cumulative values. So there is no real suggestion I have.


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

All times are UTC


Who is online

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