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?
- franco.amato asked 10 years ago
[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.
Please login first to submit.