I need someone with a legit PSP and Lua Euphoria to test out something for me. I need to know if this crashes after 1 minute and 17 seconds of music playback on a PSP. Thank you :33
Code:
-- App freezes after 1:17 of playback.
math.randomseed(os.time())
red = Color.new(255,0,0)
System.currentDirectory("ms0:/MUSIC")
dir = System.listDirectory()
repeat
random_file = dir[math.random(#dir)]
until random_file ~= dir[1] and random_file ~= dir[2]
song = random_file.name
Mp3.load(song, 0)
oldpad = Controls.read()
while true do
pad = Controls.read()
Mp3.speed(1.0, 0)
screen:clear()
if pad:cross() then
screen:print(10,10,"Working.",red)
Mp3.play(false, 0) --Can be called inside or outside a loop
end
if pad:square() then
screen:print(10,10,"testing.",red)
end
screen:print(10,260,song,red)
screen.waitVblankStart()
screen.flip()
oldpad = pad
end