KINGx - Das inoffizielle PlayStation Forum & News Portal

Normale Version: Homebrew lässt sich am PC, aber nicht auf der PSP starten!?
Sie sehen gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Hallo, ich habe ein Homebrew in Lua gecodet, es funktioniert in LUA.
Wenn ich es am PC starte funktioniert alles super, wenn ich es aber auf der PSP starte, Kackt der sound immer ab und das ding hängt sich auf!
Ich habe viele Luaplayer ausprobiert, und immer Probleme mit Sound!
Einmal gibt der den Fehler raus:
Mp3.stop 1 argument oder so.
hier ist der code:

Code:
Mp3.stop()
--Mainmenu--
Bildname = Image.load("Hintergrund.jpg")
--Colors

white = Color.new(255,255,255)
black = Color.new(0,0,0)
red = Color.new(255,0,0)
green = Color.new(0,255,0)
blue = Color.new(0,0,255)
light_blue = Color.new(0,180,255)
orange = Color.new(235,115,0)
yellow = Color.new(255,255,0)
gray = Color.new(160,160,160)

--Background
    current = 1
    while true do
    pad = Controls.read()
    screen:clear()
    screen:blit(0,0,Bildname)

.... [hier stehen halt die Menu-dinger, lass ich jetzt weg]
if pad:up() and oldpad:up() ~= pad:up() then
current = current - 1
end
if pad:down() and oldpad:down() ~= pad:down() then
current = current + 1
end

if current == 8 then
current = 1
end

if current == 0 then
current = 7
end

if pad:circle() and current == 1 then
dofile("1.lua")
end

if pad:cross() and current == 2 then
dofile("2.lua")
end

if pad:cross() and current == 3 then
dofile("3.lua")
end

if pad:cross() and current == 4 then
dofile("4.lua")
end

if pad:cross() and current == 5 then
dofile("5.lua")
end

if pad:cross() and current == 6 then
System.Quit()
end

if pad:cross() and current == 7 then
dofile("7.lua")
end




screen.waitVblankStart()
screen.flip() --Bufferwechsel
oldpad = pad

end


und hier vom z.B. 3.lua:

Code:
--Sounds

--Mainmenu--
Bildname = Image.load("Hintergrund.jpg")
--Colours
green = Color.new(0,255,0)
black = Color.new(0,0,0)
--Background
    current = 1
    while true do
    pad = Controls.read()
    screen:clear()
    screen:blit(0,0,Bildname)
    --Currents
    
    if pad:up() and oldpad:up() ~= pad:up() then
current = current - 1
end
if pad:down() and oldpad:down() ~= pad:down() then
current = current + 1
end

if current == 3 then
current = 1
end

if current == 0 then
current = 2
end

    if current == 1 then
screen:clear()
screen:blit(0,0,Bildname)
screen:print(10,50,"Abspielen",green)
screen:print(10,60,"Zurueck!",black)

end
if current == 2 then
screen:clear()
screen:blit(0,0,Bildname)
screen:print(10,50,"Abspielen",black)
screen:print(10,60,"Zurueck!",green)



end
Mp3.load("3.mp3")
Mp3.play()
if pad:cross() and current == 2 then
dofile ("script.lua")
end
  
--Ende
screen.waitVblankStart()
screen.flip()
oldpad = pad

end


Könnt ihr mir helfen??

Vieleicht liegst daran, dass du im Maincode außer Mp3.stop() keine musik benutzt...
Referenz-URLs