Answered
1
0

version: 4.44.27 (windows 7)

[code:6mm920e5]
float outerRadius = 100.0f;
FMOD_RESULT result = pEvent->setPropertyByIndex( FMOD_EVENTPROPERTY_3D_MAXDISTANCE , &outerRadius , true );
if( result == FMOD_OK )
{
float outerRadius2 = 0;
result = pEvent->getPropertyByIndex( FMOD_EVENTPROPERTY_3D_MAXDISTANCE , &outerRadius2 );
if( result == FMOD_OK )
{
printf("get max distance after set %.2f\n", outerRadius2);
}
}
[/code:6mm920e5]

outerRadius2 is not equal outerRadius(100.f), but equal to 3d max distance in FMOD Designer.

why?

thanks!

  • You must to post comments
Best Answer
0
0

I had a same problem. And find a solution.
When using pEvent->setPropertyByIndex( FMOD_EVENTPROPERTY_3D_MAXDISTANCE, &fValue, true ), the meaning of second parameter &fValue depends on it’s event data.
If event has a custom roll-off graph(i.e. sound designer edited it’s roll-off graph), the second parameter is not distance but scale factor.
Find Fmod reference manual with keyword FMOD_EVENT_PROPERTY, and see FMOD_EVENTPROPERTY_3D_MAXDISTANCE.
2015-06-01 JohnSeo.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.