Difference between revisions of "Disk.playAudio"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=disk.playAudio |args=string side |api=disk |addon=ComputerCraft |examples= {{Example |desc=Plays the audio found on the disk o...")
 
Line 8: Line 8:
 
{{Example
 
{{Example
 
|desc=Plays the audio found on the disk on the bottom drive (if any)
 
|desc=Plays the audio found on the disk on the bottom drive (if any)
|code=print(disk.getLabel("bottom"))
+
|code=print(disk.playAudio("bottom"))
 
}}
 
}}
 
}}
 
}}

Revision as of 12:22, 26 February 2012


Grid Redstone.png  Function disk.playAudio
No description provided.
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
print(disk.playAudio("bottom"))