0
0

Good Morning. I’m learning fmodex.
I installed fmodex stable version (Version: 4.12.03). I need to modify a file that contains the following lines of code:

[code:y541nqnf] /// The currently loaded sample.
FSOUND_SAMPLE * currentSample;
/// The currently loaded stream.
FSOUND_STREAM * currentStream;[/code:y541nqnf]

When I try to compile it I got the following compiler errors:

[code:y541nqnf] error: ISO C++ forbids declaration of ‘FSOUND_SAMPLE’ with no type
error: expected ‘;’ before ‘’ token
error: ISO C++ forbids declaration of ‘FSOUND_STREAM’ with no type
error: expected ‘;’ before ‘
’ token[/code:y541nqnf]

Where my mistake is? I included fmod.h but I can not find the types
FSOUND_SAMPLE and FSOUND_STREAM.
Where are they declared?
Regards,
Franco

  • You must to post comments
0
0

I forgotten to say that I’m working on Linux 64 bits.
Regards,
Franco

  • You must to post comments
0
0

FSOUND_SAMPLE and FSOUND_STREAM are in FMOD3, are you getting headers or code mixed between FMOD3 and FMODEx? Please check the FMODEx examples for correct usage.

  • You must to post comments
0
0

Hi,

[quote="mathew":g0ylq1ai]FSOUND_SAMPLE and FSOUND_STREAM are in FMOD3, are you getting headers or code mixed between FMOD3 and FMODEx? Please check the FMODEx examples for correct usage.[/quote:g0ylq1ai]

Yes you are right, I got wrong code.
Regards,
Franco

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.