Jiboo
06/08/2007, 15h58
Salut,
Voila dons je compte utiliser PAlib pour sons et musiques, et utiliser 無ib pour le rendu graphique.
Est-ce possible?
En tout cas j' arrive a jouer un mod depuis EFS.
Le probleme c' est que avant de passer a 無ib j' utiliser un code pour faire une boucle avec mes mods :
if(PA_SoundChannelIsBusy(0) == 0 && PA_SoundChannelIsBusy(1) == 0 &&
PA_SoundChannelIsBusy(2) == 0 && PA_SoundChannelIsBusy(3) == 0) modloop--;
else modloop = 2;
if(modloop == 0) PA_PlayMod(music);
Le probleme c' est que PA_SoundChannelIsBusy est toujours a 0 maintenant, meme quand le mod est en cours de lecture :/
ulPrintf_xy(0, 10, "%d %d %d %d %d %d %d %d", PA_SoundChannelIsBusy(0), PA_SoundChannelIsBusy(1),
PA_SoundChannelIsBusy(2), PA_SoundChannelIsBusy(3), PA_SoundChannelIsBusy(4),
PA_SoundChannelIsBusy(5), PA_SoundChannelIsBusy(6), PA_SoundChannelIsBusy(7));
M' affiche une ligne de 0 meme quand le mod est en lecture..
Ma boucle while :
while(1){
if(PA_SoundChannelIsBusy(0) == 0 && PA_SoundChannelIsBusy(1) == 0 &&
PA_SoundChannelIsBusy(2) == 0 && PA_SoundChannelIsBusy(3) == 0) modloop--;
else modloop = 2;
if(modloop == 0) PA_PlayMod(music);
ulStartDrawing2D();
ulSetMainLcd(1);
ulSetTextColor(RGB15(31, 31, 31));
ulPrintf_xy(0, 0, "Modloop: %d", modloop);
ulPrintf_xy(0, 10, "%d %d %d %d %d %d %d %d", PA_SoundChannelIsBusy(0), PA_SoundChannelIsBusy(1),PA_SoundChannelIsBusy(2), PA_SoundChannelIsBusy(3), PA_SoundChannelIsBusy(4),PA_SoundChannelIsBusy(5), PA_SoundChannelIsBusy(6), PA_SoundChannelIsBusy(7));
ulEndDrawing();
ulSyncFrame();
}
Est-ce qu' il y a une fonction magique pour metre a jour les busy?
Bye,
Jiboo.
Voila dons je compte utiliser PAlib pour sons et musiques, et utiliser 無ib pour le rendu graphique.
Est-ce possible?
En tout cas j' arrive a jouer un mod depuis EFS.
Le probleme c' est que avant de passer a 無ib j' utiliser un code pour faire une boucle avec mes mods :
if(PA_SoundChannelIsBusy(0) == 0 && PA_SoundChannelIsBusy(1) == 0 &&
PA_SoundChannelIsBusy(2) == 0 && PA_SoundChannelIsBusy(3) == 0) modloop--;
else modloop = 2;
if(modloop == 0) PA_PlayMod(music);
Le probleme c' est que PA_SoundChannelIsBusy est toujours a 0 maintenant, meme quand le mod est en cours de lecture :/
ulPrintf_xy(0, 10, "%d %d %d %d %d %d %d %d", PA_SoundChannelIsBusy(0), PA_SoundChannelIsBusy(1),
PA_SoundChannelIsBusy(2), PA_SoundChannelIsBusy(3), PA_SoundChannelIsBusy(4),
PA_SoundChannelIsBusy(5), PA_SoundChannelIsBusy(6), PA_SoundChannelIsBusy(7));
M' affiche une ligne de 0 meme quand le mod est en lecture..
Ma boucle while :
while(1){
if(PA_SoundChannelIsBusy(0) == 0 && PA_SoundChannelIsBusy(1) == 0 &&
PA_SoundChannelIsBusy(2) == 0 && PA_SoundChannelIsBusy(3) == 0) modloop--;
else modloop = 2;
if(modloop == 0) PA_PlayMod(music);
ulStartDrawing2D();
ulSetMainLcd(1);
ulSetTextColor(RGB15(31, 31, 31));
ulPrintf_xy(0, 0, "Modloop: %d", modloop);
ulPrintf_xy(0, 10, "%d %d %d %d %d %d %d %d", PA_SoundChannelIsBusy(0), PA_SoundChannelIsBusy(1),PA_SoundChannelIsBusy(2), PA_SoundChannelIsBusy(3), PA_SoundChannelIsBusy(4),PA_SoundChannelIsBusy(5), PA_SoundChannelIsBusy(6), PA_SoundChannelIsBusy(7));
ulEndDrawing();
ulSyncFrame();
}
Est-ce qu' il y a une fonction magique pour metre a jour les busy?
Bye,
Jiboo.