Studio::VCA::getVolume

FMOD Studio API

Firelight Technologies FMOD Studio API

Studio::VCA::getVolume

Retrieves the volume level of the VCA.

C++ Syntax

FMOD_RESULT Studio::VCA::getVolume(
  float *volume,
  float *finalvolume
);

C Syntax

FMOD_RESULT FMOD_Studio_VCA_GetVolume(
  FMOD_STUDIO_VCA *vca,
  float *volume,
  float *finalvolume
);

C# Syntax

RESULT Studio.VCA.getVolume(
  out float volume,
  out float finalvolume
);

JavaScript Syntax

VCA.getVolume(
  volume,                          // writes value to volume.val
  finalvolume                      // writes value to finalvolume.val
);

Parameters

volume
Address of a variable to receive the volume as set from the public API. Specify 0 or NULL to ignore.
finalvolume
Address of a variable to receive the final combined volume. Specify 0 or NULL to ignore.

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 function can return both the volume set from the last call to Studio::VCA::setVolume, as well as the final combined volume which may be the result of automation and modulation.

NOTE: The final volume will not change immediately. It will change during subsequent asynchronous updates.

See Also




Version 1.10.03 Built on Feb 1, 2018