disk.playAudio

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function disk.playAudio
Starts playing the music record in the drive. If any record is already playing on any disk drive, it stops before the target drive starts playing. The record stops when it reaches the end of the track, when it is removed from the drive, when disk.stopAudio is called, or when another record is started.
Syntax disk.playAudio(string side)
Returns nil
Part of ComputerCraft
API disk

Examples

Grid paper.png  Example
Plays the audio found on the disk on the bottom drive (if any)
Code
disk.playAudio("bottom")