a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Devices:
 cd.device
  CD_ADDCHANGEINT
  CD_ADDFRAMEINT
  CD_ATTENUATE
  CD_CHANGENUM
  CD_CHANGESTATE
  CD_CONFIG
  CD_EJECT
  CD_GETGEOMETRY
  CD_INFO
  CD_MOTOR
  CD_PAUSE
  CD_PLAYLSN
  CD_PLAYMSF
  CD_PLAYTRACK
  CD_PROTSTATUS
  CD_QCODELSN
  CD_QCODEMSF
  CD_READ
  CD_READXL
  CD_REMCHANGEINT
  CD_REMFRAMEINT
  CD_SEARCH
  CD_SEEK
  CD_TOCLSN
  CD_TOCMSF
  CloseDevice
  OpenDevice
Include
GuruMeditation
Docs » Autodocs » cd.device » CD_PLAYLSN

NAME

        CD_PLAYLSN -- Play a selected portion of CD audio (LSN form).
IO REQUEST
io_Device preset by the call to OpenDevice()
io_Unit preset by the call to OpenDevice()
io_Command CD_PLAYLSN
io_Data NULL
io_Length length of play
io_Offset starting position

RESULT

       io_Error        0 for success, or an error code as defined in
<devices/cd.h>

FUNCTION

       This command causes the drive to start playing CD audio from the
specified position until the specified length has passed.
io_Offset specifies the starting position. io_Length contains
the amount of time to play. All data is specified in LSN format.
A DoIO() will not return until the requested number of sectors
have been played. A SendIO() will return as soon as the PLAY
has been started. At this time other commands can be sent (like
CD_PAUSE). To stop a play before the specified length has been
reached, use AbortIO().

EXAMPLE

       /* Play two minutes, ten seconds of audio starting at 20 minutes, */
/* 58 seconds, and 10 frames. */
ior->io_Command = CD_PLAYLSN; /* Play CD audio */
ior->io_Offset = 94360; /* 20*(60*75) + 58*75 + 10 */
ior->io_Length = 9750; /* 02*(60*75) + 10*75 + 00 */
DoIO (ior);

NOTES

BUGS

SEE ALSO

CD_PLAYTRACK(), CD_PAUSE(), CD_SEARCH(), CD_ATTENUATE()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Crystal

TRSI
DJ
CSL
TBL

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se