Audio CD
Sound and Music
 
Note: During running the program a CD data constancy is ensured till the next instant of the waiting service or till a change made by means of the program.
 
Image bm950.GIF play CD from requested track (default = 1)
 
The play CD from requested track command starts playing an audio CD from a track specified as a numeric parameter. Without the track number being specified the playback starts from the CD beginning (i.e. from track 1).
 
Image bm951.GIF stop playing CD
 
The stop playing CD command stops the CD playback.
 
Image bm952.GIF pause/continue playing CD
 
The pause/continue playing CD element enables to pause or to continue the audio CD playback. This element can be used as a logic variable, i.e. it can be entered or read. A validity flag means that the CD playback is paused. By using the command without entering a parameter the state will be switched over.
 
Image bm953.GIF test playing CD
 
The test playing CD element returns a logic flag indicating whether the CD playback is running.
 
Image bm954.GIF eject CD
 
The eject CD element serves to eject or retract the CD door, and to detect the CD state. This element is used in a similar way as a logic variable. Setting to the validity flag causes the door to be ejected, setting to the invalidity flag causes the door to be retracted. Using the element as a command without any parameters causes the state to turn over provided that an audio CD is inserted (If no audio CD is inserted, the door is always considered to be open). Using the element in a logic term serves to test the audio CD not being ready (i.e. to test, whether the door is open or whether an audio CD is not inserted).
 
Image bm955.GIF total length of CD (seconds)
 
The total length of CD element returns the total length, expressed in seconds, of the inserted audio CD's records.
 
Image bm956.GIF number of tracks of CD
 
The number of tracks element returns the number of tracks of the inserted audio CD.
 
Image bm957.GIF position from the CD beginning (seconds)
 
The position from the CD beginning element returns the position being played from the CD beginning. The position is given in seconds. The element may be used as a numeric variable; by setting the numeric value the playing position can be determined (the pause state remaining retained).
 
Image bm958.GIF track being played
 
The track being played element returns the number of the track being played (numbered starting from 1). This element can be used as a numeric variable. By setting the numeric value the playback will be started from the track entered (the pause state remaining retained).
 
Image bm959.GIF length of track being played (seconds)
 
The length of track being played element returns the length of the track being played in seconds.
 
Image bm960.GIF position from the track beginning (seconds)
 
The position from the track beginning element returns the position being played from the beginning of the track being played. This position is given in seconds. This element can be used as a numeric variable; by setting the numeric value the position being played will be set (the pause state remaining retained).

Full Html Context Help of The Peter - Gemtree Software & Children Programming