Difference between revisions of "Disk.playAudio"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
(Add description) |
||
Line 5: | Line 5: | ||
|api=disk | |api=disk | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
+ | |desc=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. | ||
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 18:45, 21 April 2013
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
Example | |
Plays the audio found on the disk on the bottom drive (if any) | |
Code |
disk.playAudio("bottom") |