0
0

Hello,

I have to create events and therefore i used fmod designer. This worked pretty good and my project was compiled successfully. Now, I have a .fev and a .fsb file.
In the tutorial, there is a section for creating and handle an eventSystem.

This goes like:

[code:3h7hojct]FMOD::EventSystem *eventsystem = 0;[/code:3h7hojct]

Well, this will not work and I don’t know why. Is there another header, when I use the EventSystem?

Of Course, I do not have another FMOD System Object.

If you could help me, I would be glad :)

best regards
pyrokar

  • You must to post comments
0
0

You need to include the event system header.
fmod_event.h / fmod_event.hpp

-Pete

  • You must to post comments
0
0

Hi,

thanks for the hint, it worked. Now, there is another Problem.
Here is my source:

[code:pulrcu4k]
FMOD_RESULT result;
FMOD::EventSystem * eventSystem = 0;
FMOD::EventGroup * eventGroup;

result = FMOD::EventSystem_Create( &eventSystem );
errCheck( result );

result = eventSystem->init( 256, FMOD_INIT_NORMAL, 0 );
errCheck( result );

result = eventSystem->load( "motor.fev", 0, 0 );
errCheck(result );

[/code:pulrcu4k]

It is like the examples. I designed the motor.fev like in the fmod_designer.pdf.

Now, when I start the program, there is an Error:

error occured! The version number of this file format is not supported

Well, what shall I do?
Both, fmod and fmod designer are the newest versions.

It would be nice, if you would help me :)

Best regards
pyrokar

  • You must to post comments
0
0

The dll does not match the header. You might have an old DLL in the application directory.

-Pete

  • You must to post comments
0
0

Hello Pete,

thanks for your great help. It works -almost.

Well, I want to set the rpm to a value, when I press "w". Therefore, I have:

[code:1tbbpwjp]int rpm = 6600;

result = event->start();
errCheck( result );

key = 0
if( _kbhit() )
{
key = _getch();

if( key == 'w' )
{
    std::cout << std::endl << "BEGIN!" << std::endl;


    result = event->setProperty( "rpm", &rpm, false );
    errCheck( result );
    std::cout << "DEBUG: setProp: liefert" << result << std::endl;



}

}
[/code:1tbbpwjp]

rpm is the param name.

I think, the load of the .fev and getEvent is correct (result is OK).
Then I start the event, is this correct?

When I start my App, and press ‘w’, the Error "An invalid parameter was passed to this function." occurs.

Any hint?

Thanks in advance,
pyrokar

  • You must to post comments
0
0

FMOD::EventParameter *p;

result = event->getParameter("rpm", &p);

errcheck(result);

result = p->setValue(rpm);

errcheck(result);

See the FMOD Ex documentation Designer API reference for more information.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.