0
0

Hi All,
I’ve been trying to implement certain sound setup in our game using events. For example: I use a complex event in FMOD Designer Tool used for a car engine. We have 100 cars in a race so we want to play the same event at 100 different locations. Even though we play the event 100 times in 100 different locations we hear only one sound in one location viz. the last updated position through set3DAttributes of the Event class.
Events are not instanced and I don’t see any API for cloning/instancing events in FMOD.
I don’t want to create 100 events for each and every car engine in FMOD Designer Tool !
My question is: Is there an event cloning/instancing API similar to the channels/voices in FMOD ( calling the function System::playSound will give you new voice/channel every time … but I couldn’t find anything similar for events ) that lets me use the same event in more than one position ?

Any opinion from other developers is appreciated too.

  • You must to post comments
0
0

Set the event property "Max playbacks" to 100 and then call EventGroup::getEvent() 100 times. Each event handle returned by getEvent() is a completely seperate instance. Incidentally, it may not be memory efficient to create 100 event instances – you may want to reduce that number and do some dynamic culling – just a thought.

Cheers,

  • You must to post comments
0
0

I think that is exactly what we need.
Thanks for the fast response..

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.