Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Seek playback position
  Function Name  [SR] 
CDC_CdSeek
  No  
2.2

 Format  Sint32 CDC_CdSeek (CdcPos * pos)
 Input  pos: Position parameter
 Output  None
 Function value  Returns an error code.
 Function  Moves (seeks) the playback position (pickup) according to the specified position parameter. 

Note: If you use the stop command at the end of CD playback, it will be slower when accessing the CD again. . As long as you continue to access the CD, you should normally use the pause command.

Example (1) Frame address specification Sint32 ret; : CdcPos poswk, * pos = & poswk; / * Position parameter variable definition * / CDC_POS_PTYPE (pos) = CDC_PTYPE_FAD; CDC_POS_FAD (pos) = fad; / * Frame address * / ret = CDC_CdSeek (pos); / * Start of seek * /

(2) Track / index specification CdcPos poswk, * pos = & poswk; CDC_POS_PTYPE (pos) = CDC_PTYPE_TNO; CDC_POS_TNO (pos) = tno; / * Track number * / CDC_POS_IDX (pos) = x; / * Index number * / ret = CDC_CdSeek (pos);

(3) Stop CD playback (specify the default value: seek to the home position) ... Stop CdcPos poswk, * pos = & poswk; CDC_POS_PTYPE (pos) = CDC_PTYPE_DFL; ret = CDC_CdSeek (pos);

(4) Pause CD playback (unchanged designation: seek to current position) ... Pause CdcPos poswk, * pos = & poswk; CDC_POS_PTYPE (pos) = CDC_PTYPE_NOCHG; ret = CDC_CdSeek (pos);



Return to previous page Return to menu Go to next page