Need tester for MP3 player

Discussion in 'PSP - Hacking & Homebrew' started by DirtySprite, Dec 20, 2016.

  1. DirtySprite
    OP

    DirtySprite Member

    Newcomer
    17
    12
    Dec 8, 2016
    United States
    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
     
  2. munchy_cool

    munchy_cool GBAtemp Advanced Fan

    Member
    627
    168
    Dec 15, 2016
    United States
    I have a PSP 1000 running CFW, let me know if I can be of any help.
     
  3. DirtySprite
    OP

    DirtySprite Member

    Newcomer
    17
    12
    Dec 8, 2016
    United States
    Yeah man. I need someone with a real PSP to test my code. PPSSPP is being janky. It freezes up and crashes at a specific timing when I play a song. If you could find a copy of LuaPlayer Euphoria, make an index.lua, copy paste what I put earlier, and press cross to play a song, it would be awesome :3


    If it works then I'll buy a PSP to keep working on it. If not then no. If you can't find LuaPlayer Euphoria I'll edit the post later and add it. Right now I'm at work. I got up late today and rush posted this before going to work :33
     
  4. munchy_cool

    munchy_cool GBAtemp Advanced Fan

    Member
    627
    168
    Dec 15, 2016
    United States
  5. DirtySprite
    OP

    DirtySprite Member

    Newcomer
    17
    12
    Dec 8, 2016
    United States
    We're on the same boat buddy :3

    iirc you need to put the LuaPlayer Euphoria folder in the GAME folder on the PSP, and it should show on the XMB. I haven't had a PSP in a long time :3
     
  6. munchy_cool

    munchy_cool GBAtemp Advanced Fan

    Member
    627
    168
    Dec 15, 2016
    United States
    okies ..let me check ..
     
  7. DirtySprite
    OP

    DirtySprite Member

    Newcomer
    17
    12
    Dec 8, 2016
    United States
    Cool man you let me know :‏D
     
  8. DirtySprite
    OP

    DirtySprite Member

    Newcomer
    17
    12
    Dec 8, 2016
    United States
    Did you get it to work fam? :3
     
  9. kill_liberty

    kill_liberty Newbie

    Newcomer
    1
    0
    Dec 31, 2016
    United States
    Stop using Euphoria, that shit's outdated. Build up on this with OneLua.

    Code:
    math.randomseed(os.time())
    
    color.loadpalette()
    
    red = color.new(255, 0, 0)
    
    path = "ms0:/MUSIC"
    
    files.cdir(path)  
    
    dir = files.listfiles(path)
    
    random_file = dir[math.random(#dir)] 
    
    song = sound.load(random_file.name)
    
    while true do
    
    buttons.read()
    
    if buttons.cross then
    
    sound.play(song)
    
    end
    
    screen.print(10, 10, "Press X", 0.6, red)
    
    screen.flip()
    
    end
    
    
     
  10. gnmmarechal

    gnmmarechal Kirigiri > Naoto

    Member
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,477
    2,664
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    b-but :(
     
  11. Davis Nuñez

    Davis Nuñez Newbie

    Newcomer
    9
    11
    Dec 9, 2015
    Mexico
    Use ONElua!
    It is the best and last lua interpreter for psp.
    Visit onelua.x10.mx