minifmod fails to initialize
category: code [glöplog]
Hi,
I’m currently trying to use minifmod. I follow the examples in order to simply play a .xm file, but I can on error on that line :
FSOUND_Init fails to initialize, and I don’t know why. I use that file, which comes from the ufmod samples :
minifmod example
Any idea? Thanks in advance.
I’m currently trying to use minifmod. I follow the examples in order to simply play a .xm file, but I can on error on that line :
Code:
if (!FSOUND_Init(44100, 0))
FSOUND_Init fails to initialize, and I don’t know why. I use that file, which comes from the ufmod samples :
minifmod example
Any idea? Thanks in advance.
but I got an error*
and it’s not a ufmod sample, but a minifmod. *exhausted*, sorry.
Here you're not enabling any of the loaders:
FSound.c:
Without loaders, FSound will return FALSE immediately.
Code:
//#define USEMEMLOAD
//#define USEMEMLOADRESOURCE
//#define USESAMPLELOADCALLBACK
#define USEFMOD
FSound.c:
Code:
if (!FSOUND_File_OpenCallback || !FSOUND_File_CloseCallback || !FSOUND_File_ReadCallback || !FSOUND_File_SeekCallback || !FSOUND_File_TellCallback)
return FALSE;
Without loaders, FSound will return FALSE immediately.
My bad, it falls back to the file loader then. In that case the only way it can return FALSE is when waveOutOpen fails, which is prolly a sound card issue.
Either way, stepdebug into it, that's prolly the easiest way to figure out what's going on.
Either way, stepdebug into it, that's prolly the easiest way to figure out what's going on.
I tried to but the lib seems to be compiled without debug information. I just have the stepping debug of my own code, but nothing after the FSOUND_Init…
What could my card do wrong?
What could my card do wrong?
let me guess, you are trying on linux ... with pulseaudio D:
Nope I just have alsa installed.
welp, fmod.org doesn't host it anymore, but the source is flying around on the nets. so, i guess you are already compiling it with debug symbols :)
http://pouet.net/prod.php?which=5339]Softworld by just for fun
linux port (alt)
here (win/lin)
or here(win)
disclaimer: only searched for links, didnt try any
linux port (alt)
here (win/lin)
or here(win)
disclaimer: only searched for links, didnt try any
I think we have the same linux sources and lib. The problem seems to be asound related… Thank you anyway :)
What about µfmod skypers? Did you try it? A can't remember what format minifmod play, but mebbi you can use it.
No I didn’t try it yet. Well, I try tonight then.