0
0

Hi,
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.

Thx you

  • You must to post comments
0
0

Have you DEFINEd MSWINDOWS ??

  • You must to post comments
0
0

[quote="Anonymous":1n6hgy6k]Have you DEFINEd MSWINDOWS ??[/quote:1n6hgy6k]

{$DEFINE MSWINDOWS}

at top of source

  • You must to post comments
0
0

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’

and

[Error] simple.dpr(83): Incompatible types: ‘fmod.TFSoundOutputTypes’ and ‘simple.TFSoundOutputTypes’

Defining MSWINDOWS doesn’t help.. I’m using Delphi 6 professional. Any tips?

  • You must to post comments
0
0

If I’m not mistaken, you need to put the “fmodtypes” on the USES declaration. All Delphi demos are missing this unit on the USES declaration…

No need to put the “define mswindows” thingy…

regards.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

huh… I downloaded FMOD again and yes, you still need to add the “fmodtypes” in the “uses” section…

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.