I was looking to do some simple audio experiments on the Saturn, and ponut's ponèSound library seemed like the right tool for the job. While I was impressed with what the demo projects had to offer, I encountered more difficulty than expected while trying to edit them for my own purposes, specifically while changing the audio file names on lines 71-73 of main.c in jo_demo:
The demo program only seems to work if each file is named DEF_FLAG.PCM, HAV_FLAG.PCM, and NBGM.ADX; altering any of these names (even if the files being loaded are otherwise identical) causes the built program to refuse to play any audio at all, even if the rest of the files have their original names. Editing the files themselves (including creating a new PCM file and renaming it to one of the 'legal' names) works fine, to the best of my knowledhe.
I tried scouring the project folder for any other file(s) where these names were hardcoded in, but to no success. Running clean.bat before compiling yielded similarly few results, and inspecting the IDs of the load functions indicated no errors while loading them, which only confused me even more.
Given my inexperience with this library (along with Jo Engine and Saturn development in general), I apologize if the solution to this problem is actually quite obvious and I'm just unable to see it. That being said, please let me know if I need to provide any extra information about my machine or files that could clarify my situation further.
C:
pcm16snd = load_16bit_pcm((Sint8 *)"DEF_FLAG.PCM", 15360);
pcm8snd = load_8bit_pcm((Sint8 *)"HAV_FLAG.PCM", 15360);
adx4snd = load_adx((Sint8 *)"NBGM.ADX");
I tried scouring the project folder for any other file(s) where these names were hardcoded in, but to no success. Running clean.bat before compiling yielded similarly few results, and inspecting the IDs of the load functions indicated no errors while loading them, which only confused me even more.
Given my inexperience with this library (along with Jo Engine and Saturn development in general), I apologize if the solution to this problem is actually quite obvious and I'm just unable to see it. That being said, please let me know if I need to provide any extra information about my machine or files that could clarify my situation further.