Cd play

From Bennu Wiki
Jump to: navigation, search


Definition

INT cd_play ( <INT cdID> , <INT trackNumber> , [<INT tracks>] )

Starts playing at the specified track on the specified CD/DVD drive and will keep on playing for the specified number of tracks or one if no number is specified.

Parameters

INT cdID - The cdID of the CD/DVD drive with the CD to play.
INT trackNumber - The track number to play.
INT tracks - The number of tracks to play. Default is 1.

Returns

INT

0 - Invalid CD/DVD drive or CD/DVD.
1 - The CD started playing.


Mod_cd
Globals Cdinfo
Constants CDERRORCDPAUSEDCDPLAYINGCDSTOPPEDCDTRAYEMPTY
Functions Cddrives()Cdeject()Cdgetinfo()Cdname()Cdpause()Cdplay()Cdresume()Cdstatus()Cdstop()