how do i play more than one mp3 at the same time? how do i start a second thread for the second mp3?
second question ...
how can i use button input, while this code executes:
Code: Select all
sprintf(buffer, "gfx/questions/question%04d.png", question);
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 480, 272, ourImage, 0, 0);
freeImage(ourImage);
sprintf(buffer, "gfx/balken/balken01.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken02.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken03.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken04.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken05.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken06.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken07.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken08.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken09.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken10.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken11.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken12.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken13.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);
sprintf(buffer, "gfx/balken/balken13.png");
ourImage = loadImage(buffer);
blitAlphaImageToScreen(0 ,0 , 442, 21, ourImage, 19, 100);
flipScreen();
freeImage(ourImage);
sceKernelDelayThread(2000000);