This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
masterdisasterHD's profile picture

disk.getLength()?

Started by masterdisasterHD, 04 April 2014 - 04:47 PM
masterdisasterHD #1
Posted 04 April 2014 - 06:47 PM
Hi all, i would love to see something like this:

if a disk is a record (music disk) then have a function that returns the length of the song on the disk and if its not a music disk it returns nil.

Please leave feedback
Edited on 04 April 2014 - 04:48 PM
Bomb Bloke #2
Posted 04 April 2014 - 07:20 PM
The problem is that the length of the disc isn't easy to determine. You can find a discussion about it here, along with a decent workaround.