I have made the following program:
//TEST
//?IFDEF IPHONE
//IMPORT int iPhoneIsCracked()
//?ENDIF
SETCURRENTDIR("Media") // seperate media and binaries?
SETSCREEN 480,320,0
LOADFONT "smalfont.png",0
PLAYMUSIC "Kak.ogg",0
a$=GETLASTERROR$()
LIMITFPS 60
WHILE TRUE
DRAWRECT 470,310,20,20,RGB(255,0,0)
PRINT GETJOYNAME$(0), 0, 0 // Name of Device
PRINT " X:"+INTEGER(100*GETJOYX(0)),0,24
PRINT " Y:"+INTEGER(100*GETJOYY(0)),0,48
PRINT " Z:"+INTEGER(100*GETJOYZ(0)),0,72
PRINT " 0:"+GETJOYBUTTON(0,0)+" 1:"+GETJOYBUTTON(0,1)+" 2:"+GETJOYBUTTON(0,2),0,96
PRINT "RX:"+INTEGER(100*GETJOYRX(0)),0,24+96
PRINT "RY:"+INTEGER(100*GETJOYRY(0)),0,48+96
PRINT "RZ:"+INTEGER(100*GETJOYRZ(0)),0,72+96
// PRINT "PI:"+iPhoneIsCracked(),0,192
PRINT "ER:"+a$,0,224
SHOWSCREEN
WEND
//?IFNDEF IPHONE
//FUNCTION iPhoneIsCracked:
// RETURN FALSE
//ENDFUNCTION
//?ENDIF
The idea was to know how to read iphone info.
But I have discovered a few interesting things.
PLAYMUSIC line.
If the file is loaded, getlasterror$ should return "000 no error", and if the file does not exists, "3 file does not exist". It doesnt matter what filename I use, I always get "no error". Is this way the music does not play on iPhone?
If you want the "tester.ipa" file (you will need a JB iphone!) and the "Kak.ogg" music, download at
http://www.ampostata.org/Krakout+/Test.rar
I have still to discover the Z value were come from on the iPhone!
Why do I have not music on the iPhone?