Difference between revisions of "Disk.getAudioTitle"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:APIFunctions)
(Add description and clarify return value)
Line 4: Line 4:
 
|args=[[string (type)|string]] side
 
|args=[[string (type)|string]] side
 
|api=disk
 
|api=disk
|returns=[[string (type)|string]] audio title
+
|returns=[[string (type)|string]] the track title, or [[nil]] 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

Revision as of 18:39, 21 April 2013


Grid Redstone.png  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 nil if there is not a music record in the drive
Part of ComputerCraft
API disk

Examples

Grid paper.png  Example
Returns the title of an audio disk
Code
print(disk.getAudioTitle("bottom"))
Output C418 - ward Output changes according to the audio title