Optimus
Member
CHN:
Just moved my demo code from Mr.Mirko's SDK to DevkitARM with the official Gamepark SDK. I thought it would be much easier to use those players, cause I thought (I am not sure) they were written in DevkitARM.
I put the libmodplay.a in arm-elf/lib directory, type -lmodplay in the appropriate place on makefile, also put "gpmodplay.h" in arm-elf/include and include it in the beginning of my main programm. Everything fine till here. I start in my code by calling MODPlay_Init (mymod) after I declared MODPlay *mymod; above. The compiler says it can't find GpFileOpen, GpFileGetSize, etc. 4 SMC functions of the official SDK. There are includes in my main c file for these, but I think that's not the problem. The problem occurs in modplay.c inside libmodplay.a. But I can't see that code cause it's inside the lib anyways. Wtf? How can this happen??? Does the directory with includes/libs from the official SDK has to be in an exact place inside DevkitARM so that the lib can view it? I haven't found any more infos in the txt file coming with chn libmodplay! It seems to be a good player and I want to use it for my next scene demo(s). HELP!!!
AFM:
Then I said. Mmm,. let's try AFM player
(http://www.gp32x.de/cgi-bin/cfiles.cgi?0,0,0,0,6,439).
This is how the example code in the zip file containing the afm player begins:
/* 44100,2 for default speed */
/* 44100,8 for 99mhz */
afm_install(44100,2);
1) the compiler tells me "too many arguments". I remove one, I remove too and now it's afm_install(); And it works!!! The strange is that this function defined in afm.h also takes those two arguments but the lib doesn't agree with that! Anyways,. it works with no arguments at the end..
2) The only function that can't be found by the comiler is afm_start();
That one is also in afm.h but it doesn't seem to be found in libafm.a or something by the compiler ;P
Strange.. the example is much diferrent than the library provided. Old unupdated documentation??? What do you say?
p.s. I need help, esp. for CHN player. I really want to use that. Older demos use it and the MODs I am going to use seem to play very great in his MODplay app also released in the GP32.
Just moved my demo code from Mr.Mirko's SDK to DevkitARM with the official Gamepark SDK. I thought it would be much easier to use those players, cause I thought (I am not sure) they were written in DevkitARM.
I put the libmodplay.a in arm-elf/lib directory, type -lmodplay in the appropriate place on makefile, also put "gpmodplay.h" in arm-elf/include and include it in the beginning of my main programm. Everything fine till here. I start in my code by calling MODPlay_Init (mymod) after I declared MODPlay *mymod; above. The compiler says it can't find GpFileOpen, GpFileGetSize, etc. 4 SMC functions of the official SDK. There are includes in my main c file for these, but I think that's not the problem. The problem occurs in modplay.c inside libmodplay.a. But I can't see that code cause it's inside the lib anyways. Wtf? How can this happen??? Does the directory with includes/libs from the official SDK has to be in an exact place inside DevkitARM so that the lib can view it? I haven't found any more infos in the txt file coming with chn libmodplay! It seems to be a good player and I want to use it for my next scene demo(s). HELP!!!
AFM:
Then I said. Mmm,. let's try AFM player
(http://www.gp32x.de/cgi-bin/cfiles.cgi?0,0,0,0,6,439).
This is how the example code in the zip file containing the afm player begins:
/* 44100,2 for default speed */
/* 44100,8 for 99mhz */
afm_install(44100,2);
1) the compiler tells me "too many arguments". I remove one, I remove too and now it's afm_install(); And it works!!! The strange is that this function defined in afm.h also takes those two arguments but the lib doesn't agree with that! Anyways,. it works with no arguments at the end..
2) The only function that can't be found by the comiler is afm_start();
That one is also in afm.h but it doesn't seem to be found in libafm.a or something by the compiler ;P
Strange.. the example is much diferrent than the library provided. Old unupdated documentation??? What do you say?
p.s. I need help, esp. for CHN player. I really want to use that. Older demos use it and the MODs I am going to use seem to play very great in his MODplay app also released in the GP32.