Difference between revisions of "Disk.getAudioTitle"
From ComputerCraft Wiki
Scarfacial (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=disk.getAudioTitle |args=string side |api=disk |returns=string audio title |addon=ComputerCraft |examples= {...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=disk.getAudioTitle | |name=disk.getAudioTitle | ||
− | |args= | + | |args={{Type|string}} side |
|api=disk | |api=disk | ||
− | |returns= | + | |returns={{Type|string}} the track title, or false if there is not a music record in the drive |
|addon=ComputerCraft | |addon=ComputerCraft | ||
+ | |desc=Reads the title of the audio track from the music record in the drive. The [[disk.getLabel]] function also returns the track title of a music record. | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
Line 13: | Line 14: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:API_Functions]] |
Latest revision as of 23:23, 28 June 2015
Function disk.getAudioTitle | |
Reads the title of the audio track from the music record in the drive. The disk.getLabel function also returns the track title of a music record. | |
Syntax | disk.getAudioTitle(string side) |
Returns | string the track title, or false if there is not a music record in the drive |
Part of | ComputerCraft |
API | disk |
Examples
Example | |
Returns the title of an audio disk | |
Code |
print(disk.getAudioTitle("bottom")) |
Output | C418 - ward Output changes according to the audio title |