Fmod macht mich wahnsinnig !!!
-
Hallo,
ich versuche vergeblich F-Mod zu initialisieren.
"FMOD.DLL" ist im Ordner
"The import library (fmodvc.lib, fmodbc.lib etc) you need to link (for C users)"
ist eingebunden und "The header (fmod.h, fmod.pas, fmod.bas depending on language) you need to include " selbstverständlich auch.aber trotzdem bekomme ich immer error C2065:
'FSOUND_Init' : nichtdeklarierter Bezeichner
Fehler beim Ausführen von cl.exe.Bitte helft mir ...
-
Da der Compiler und nicht der Linker motzt, schau doch mal nach, ob FSOUND_Init in fmod.h deklariert/definiert ist.
-
in der fmod.h steht:
DLL_API signed char F_API FSOUND_Init(int mixrate, int maxsoftwarechannels, unsigned int flags);
und dann steht der Befehl aber auch in der Hilfe:
Now you are ready to start coding, you need to initialize FMOD first! You do this once at the start of your program.Do this with FSOUND_Init. The simplest way to do this is to tell FMOD to mix at 44100hz, and use 32 software channels. This is done like so.
FSOUND_Init(44100, 32, 0);
To get more detailed control please see the fmod.h file to see what pre-FSOUND_Init functions can be called to control things like mixer type, output device etc. Also FSOUND_Init itself has flags which you can find out more about in the relevant documentation.
-
Probier doch mal die Code-Beispiel aus die bei dem Paket dabei sind.