Hi,
me again...
I just need some advise with the PRAGMA_PATH.
The working directory is set-up like:
note: work and sounds are folders.
Work (folder)
|- Sounds (folder), soundfile.c
So, in my code set-up (soundfile.c):
#include <acknex.h>
#include <default.c>
#define PRAGMA_PATH "sounds";
char* music_level1 = "sndLvl1.mp3";
function main()
{
video_mode = 8;
level_load(NULL);
wait(2);
media_loop(music_level1, NULL, 100);
}
But.. the code above doesn't work! I could not hear the sounds..could be the engine didn't find the mp3 file.
As I've done trial/experimentation, I've found out the fix is to change the definition of the "music_level1"
char* music_level1 = "sndLvl1.mp3";
change to
char* music_level1 = "sounds\\sndLvl1.mp3";
So, I'm wondering why PRAGMA_PATH didn't work with the first definiiton??? but even for the second definition not specifying the PRAGMA_PATH, the sound works.
Hope someone could advise. Thanks