First, thank you very much for the FamiStudio 2.2 I'm sorry if the following questions are very basic.
I'm trying to integrate the FamiStudio NES Sound Engine in a C pipeline. I'm following the information from https://nesdoug.com/ , I'm able to create my 'own' game and would like to add music and SFX using FamiStudio NES Sound Engine.
I'm on MAC, using ca65.
I've first remove the famitone2.s file, include the sound engine (ca65) in what I think is my main assembly file (crt0.s), include some music from the demo, change the flag to external definition in the engine, it's compiling but I've got an error during the link (error that doesn't prevent the game to run by the way): ld65: Error: Missing memory area assignment for segment 'RAM'
I suppose it's because I've not well define the following part:
; CA65-specifc config.
.define FAMISTUDIO_CA65_ZP_SEGMENT ZEROPAGE
.define FAMISTUDIO_CA65_RAM_SEGMENT RAM
.define FAMISTUDIO_CA65_CODE_SEGMENT CODE
But I have no idea (sorry for that), to a way to fix it....
What exactly does it represent?(again sorry).
Additionnaly, I need to expose the following method to directly call them from my code:
- famistudio_init
- famistudio_music_play
- famistudio_music_pause
- famistudio_music_stop
- famistudio_sfx_init
- famistudio_sfx_play
- famistudio_sfx_sample_play
- famistudio_update
Regards,
Ben