0
0

Hi folks,

I am complete new here. Yesterday discovered FMOD and for my freeware project it’s exactly what I needed!

Here problem:
I use lcc-win32. Below is really minimal code for playing MP3 – works with all compilers except LCC.
So, I just translate and link with fmodlcc.lib, according documentation.
All is without errors. When run exe, I obtain error:

Missing export fmod.dll: FSOUND_Init

Can someone try in lcc snippet below and confirm this bug? I use latest version of lcc-win32.

Thanks a LOT for any help!

[b:2ihnbu5n]
//—————————–

include <windows.h>

include <conio.h>

include “fmod.h”

FSOUND_STREAM* zvuk;

void main () {

FSOUND_Init (44100, 32, 0);
zvuk=FSOUND_Stream_Open(“zvuk.mp3”,0, 0, 0);

FSOUND_Stream_Play (0,zvuk);
while (!kbhit())
;

FSOUND_Stream_Close(zvuk);
FSOUND_Close();
}
[/b:2ihnbu5n]//—————————

  • You must to post comments
0
0

[quote="davar":1nzryhbg]Missing export fmod.dll: FSOUND_Init
[/quote:1nzryhbg]
It’s _FSOUND_Init@12 Your linker appears to strip off the leading underscore and the ‘@12’ suffix. For example, GNU linker does so for compatibility. Try checking your linker settings.

  • You must to post comments
0
0

No problem with FMOD.H, but probably original export FMODLCC.LIB was not created well. This worked for LCC-Win32 for me:

pedump fmod.dll >fmod.exp

cut off all around, just leave export functions.

Seems that TWO COLUMNS expression is necessary. You will need file like:

FMOD.DLL
_FMUSIC_FreeSong@4 _FMUSIC_FreeSong@4
_FMUSIC_GetBPM@4 _FMUSIC_GetBPM@4
_FMUSIC_GetGlobalVolume@4 _FMUSIC_GetGlobalVolume@4


etc

then buildlib fmod.exp
rename lib to fmodlcc.lib

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.