Posted 20 January 2013 - 01:53 PM
Why do we need the disk api when the peripheral.wrap API does everything, and more concisely? Instead of:
We can already do:
And that way we don't have 'top' littered all over the code.
local t = disk.getAudioTitle('top')
print(t)
disk.playAudio('top')
sleep()
disk.eject('top')
We can already do:
local record = peripheral.wrap('top')
local t = record.getAudioTitle()
print(t)
record.playAudio()
sleep()
record.eject()
And that way we don't have 'top' littered all over the code.