Firelight Technologies FMOD Studio API

Studio::EventInstance::setParameterValueByIndex

Sets a parameter instance value by index.

C++ Syntax

FMOD_RESULT Studio::EventInstance::setParameterValueByIndex(
  int index,
  float value
);

C Syntax

FMOD_RESULT FMOD_Studio_EventInstance_SetParameterValueByIndex(
  FMOD_STUDIO_EVENTINSTANCE *eventinstance,
  int index,
  float value
);

Parameters

index
Index of the parameter.
value
Value to set.

Return Values

If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

Remarks

This is a convenience function that is equivalent to calling EventInstance::getParameterByIndex then ParameterInstance::setValue.

See Also




Version 1.03.06 Built on Apr 17, 2014