Skip to content

PlayCDTrack

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

PlayCDTrack

PlayCDTrack:Int32 track:Int32, mode:Int32=1
Parameter Mode Type Default Description
track In Int32 required The track number, counted from 1.
mode In Int32 1 1 plays the track once (the default), 2 repeats it and 3 plays on to the end of the disc.

Returns: The channel of the track in the original. Always 0 here, as nothing is played.

Description

Plays a track of an audio CD in the original. There is no CD playback here.

Differences

  • Always returns 0 and plays nothing. Use PlayMusic with ripped tracks instead.

Examples

Local ch = PlayCDTrack(2, 1)
If ch = 0 Then Print "No CD audio available" Else Print "Playing track 2"
WaitKey

Related Commands

LoopSound, PauseChannel, PlayMusic, PlaySound

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally