0
0

How can I make sure an event finish playing even though I move around the listener in the 3D world at the same time. I only want to play the event at certain time with the same listener position as when the event started playing. Other event sounds needs to know where the listener is so I need to update the listener position. But I don’t want the already started event sound to be effected…

Thanks a million for help!

  • You must to post comments
0
0

I don’t know if I understood your questions but I’ll try to answer them. 😉

To know when an event has stopped you can use Event::setCallback and wait until you event triggers FMOD_EVENT_CALLBACKTYPE_STOLEN orFMOD_EVENT_CALLBACKTYPE_EVENTFINISHED.

You might want to change that event’s "3D Position" property at the Designer to "Head Relative". If you do this your event position will be treated as an offset from the listener instead of a position in the world.

You can allways make a custom solution, linking the Event source to the player so that it moves with it while playing and reset its position when its done.

Hope this helps.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.