Hello,
i'm a trying to use Arkos Player 2 with CPCtelera / SDCC, i have managed to convert the assembly code (according to the work already done for Arkos Player 1) and make an example project.
I heard some noise but not the original music, i had to make some mistakes while converting but i have not idea what is wrong.
The music "AHarmlessGrenade" was exported in binary at 0x4000 and converted into array __at(0x4000).
#include <cpctelera.h>
#include "Music_AHarmlessGrenade.h"
extern void PLY_AKG_Init(void* songdata, u8 subSong) __z88dk_callee;
extern void PLY_AKG_Play();
void main(void) {
cpct_disableFirmware();
PLY_AKG_Init(G_Music_AHarmlessGrenade, 0);
while (1)
{
cpct_waitVSYNC();
PLY_AKG_Play();
}
}
In the zip i have also included by convenient the original source code (PlayerAkg.asm_org and PlayerAkg_SoundEffects.asm_org)
Thanks,
Arnaud