Posted 26 July 2013 - 03:58 AM
I've been working on this code all day, its one of the first things I've programed in Lua (tho I have some knowledge of other languages). The program works nearly as intended excpet it tends to loop the disk too early.
here is a pastebin to the code: http://pastebin.com/u0d116nX
It seems to misbehave after the music disk has been restarted using 'P', my guess is that each time it is told to play it creates a new timer, and the extra timers are making it loop at the wrong times, but I've run out of ideas on how to fix it.
here is a pastebin to the code: http://pastebin.com/u0d116nX
It seems to misbehave after the music disk has been restarted using 'P', my guess is that each time it is told to play it creates a new timer, and the extra timers are making it loop at the wrong times, but I've run out of ideas on how to fix it.