I can’t learn to use fmod because each exemple make an error :
for record :
[Error] record1.dpr(479): Undeclared identifier: ‘FSOUND_Sample_SetLoopMode’
[Error] record1.dpr(520): Undeclared identifier: ‘FSOUND_GetCurrentVU’
for simplegui :
[Error] main.pas(128): Incompatible types: ‘fmod.TFSoundOutputTypes’ and ‘main.TFSoundOutputTypes’
[Error] main.pas(158): Incompatible types: ‘fmod.TFSoundOutputTypes’ and ‘main.TFSoundOutputTypes’
[Error] main.pas(164): Incompatible types: ‘fmod.TFSoundMixerTypes’ and ‘main.TFSoundMixerTypes’
I don’t know why
can you help me ???
I’m using Delphi 6 Ent.
- fabiin asked 16 years ago
I get the same messages here, but they don’t make much sense to me. When compiling the ‘simple’ demo for example, i get errors like these:
[Error] about.pas(91): Incompatible types: ‘fmodtypes.TFSoundOutputTypes’ and ‘fmod.TFSoundOutputTypes’
[Error] simple.dpr(83): Incompatible types: ‘fmod.TFSoundOutputTypes’ and ‘simple.TFSoundOutputTypes’
Defining MSWINDOWS doesn’t help.. I’m using Delphi 6 professional. Any tips?
- Anonymous answered 15 years ago
All the Delphi samples should compile straight out of the zip. Just make sure you have (install path)\fmodapi362win32\api\delphi in your Library path and that you have fmodtypes and either fmod or fmoddyn in your uses clause. Make sure that earlier versions of the FMOD API are not in the Library path and that other copies of fmod.dll are not floating around your drive.
The only exception is the record sample, but that has a crash bug in it that has still not yet been rectified.
There has been an issue raised with a small incompatibility with Delphi 5 and earlier with THandle and PSingle not being declared. This is easily fixed by declaring THandle as a Cardinal and PSingle as ^Single.
If you are still having problems, then post a small code sample that demonstrates the problem.
As said before, the record sample does not work. It requires some time to sit down and go through the callback with a fine-tooth comb to fix a crash. So it has not been kept up-to-date as closely as the other demos. The simplegui demo is not in the current zip. All other demos in the zip have fmodtypes in the appropriate uses clause.
Please login first to submit.