This is an archive. | |
See the new ClickWiki at https://clickwiki.github.io. This version is just an archive for the purposes of migrating content to the new structure. |
CD Audio Object
Author | |
Status | Released |
Release Date | Unknown |
Available for | Not yet documented |
Supported Runtimes | |
License | Free |
Download | |
---|---|
Includes Examples | No |
Includes Help Files | Yes |
Links |
The CD-Audio object lets you play compact disc audio tracks from within your Clickteam Fusion 2.5 applications. The CD-Audio object provides all the functionality that you would expect from a top quality CD player. You can move between tracks, pause and resume playing tracks, and even open and close the CD door. CD-Audio playback is frame independent, so a CD can play as the background music for the duration of an application.
The CD-Audio object gives you the tools to create professional productions with impressive soundtracks, CD quality music, and real speech.
Contents
Properties
Open driver at start
Opens the CD-Audio driver when the frame starts. This option reduces slightly (very slightly) the time necessary to play a track.
Play track at start
Select this option and enter the number of the track to play when the frame starts: it will be automatically played.
Stop playing at end of frame
Interrupts the playback when the frame ends. Do not select this option if you want the music to keep on playing between frames.
Play when minimized
Continues the playback even when the application's window is minimized.
Conditions
Compare to time position
compares the current time position of the CD to a specific time value.
Compare to track's elapsed time
compares the elapsed time of the current track to a specific value.
Actions
Play a track
plays a specific track on the CD.
Play a track and continue
plays a track from the CD and continues to play the rest of the tracks until the CD reaches the end or the Stop or Pause action is performed.
Play at position
plays the CD at a specific time position from the start of the disc. For example, if you have a 30 minute CD and you set the time position at 15 minutes, the CD will begin playing in the middle of the disc.
Stop
stops the CD track currently being played.
Pause
pauses the CD track currently being played.
Resume
resumes playing a CD track that has been paused.
Previous track
plays the previous track on the CD.
Next track
plays the next track on the CD.
Open door
opens the door of the CD-ROM drive.
Close door
closes the door of the CD-ROM drive.
Expressions
Number Of Current Track
The Number Of Current Track function retrieves the number of the CD track currently being played.
Number Of Tracks
The Number Of Tracks function retrieves the total number of tracks on the CD.
Position In Current Track (1/1000s)
The Position In Current Track (1/1000s) function retrieves the time, in milliseconds, from the start of the current track.
Length Of Current Track (1/1000s)
The Length Of Current Track (1/1000s) function retrieves the length, in milliseconds, of the current track.
Position In Disk (1/1000s)
The Position In Disk (1/1000s) function retrieves the time, in milliseconds, from the start of the CD.
Length Of Disk (1/1000s)
The Length Of Disk (1/1000s) function retrieves the length, in milliseconds, of the entire CD.
Last Error Number
The Last Error Number function retrieves the last error code from the CD. A value of zero indicates that there are no errors. Any other value indicates a problem.