Title | Function | Function Name [SR] | No |
Format Sint32 CDC_CdPlay (CdcPly * ply) Input ply: Playback parameter Output None Function value Returns an error code. Function Plays the CD according to the specified playback parameters. Music is played in the CD-DA area and sector data is read in the CD-ROM area. Do not play back the gap / pause area at the boundary between CD-ROM and CD-DA. Note SCSP settings are required to play CD-DA and actually output audio. For setting method Refer to the SCSP manual for details. Remarks When playing CD-DA, the mute is canceled 4 frames before the start position to prevent the song from being cut off.
Example (1) Frame address specification Sint32 ret; C CdcPly plywk, * ply = & plywk; / * Definition of playback parameter variable * / CDC_PLY_STYPE (ply) = CDC_PTYPE_FAD; CDC_PLY_SFAD (ply) = fad; / * Start frame address * / CDC_PLY_ETYPE (ply) = CDC_PTYPE_FAD; : CDC_PLY_EFAS (ply) = fasnum; / * number of frame address sectors * / : CDC_PLY_PMODE (ply) = pmode; / * Playback mode * / ret = CDC_CdPlay (ply); / * Start playback * /(2) Track / index specification CdcPly plywk, * ply = & plywk; CDC_PLY_STYPE (ply) = CDC_PTYPE_TNO; CDC_PLY_STNO (ply) = tno1; / * Start track number * / : CDC_PLY_SIDX (ply) = x1; / * Start index number * / CDC_PLY_ETYPE (ply) = CDC_PTYPE_TNO; : CDC_PLY_ETNO (ply) = tno2; / * End track number * / : CDC_PLY_EIDX (ply) = x2; / * End index number * / CDC_PLY_PMODE (ply) = pmode; / * Playback mode * / ret = CDC_CdPlay (ply);
(3) Specifying default values CdcPly plywk, * ply = & plywk; : CDC_PLY_STYPE (ply) = CDC_PTYPE_DFL; / * The start position is the top of the disc * / CDC_PLY_ETYPE (ply) = CDC_PTYPE_DFL; / * End position is the end of the disc * / : CDC_PLY_PMODE (ply) = CDC_PM_DFL; / * No repeat, move pickup * / ret = CDC_CdPlay (ply);
(4) Resume CD playback (unchanged designation: playback from the current position) ... Pause cancellation CdcPly plywk, * ply = & plywk; CDC_PLY_STYPE (ply) = CDC_PTYPE_NOCHG; CDC_PLY_ETYPE (ply) = CDC_PTYPE_NOCHG; CDC_PLY_PMODE (ply) = CDC_PM_NOCHG; ret = CDC_CdPlay (ply);