IXACTEngine::SetVolume

Sets the volume of a sound category.

STDAPI SetVolume(
  XACTCATEGORY nCategory,
  XACTVOLUME nVolume
);

Parameters

nCategory
[in] Index of the category (XACTCATEGORY) for which you wish to set the volume, as returned by IXACTEngine::GetCategory.
nVolume
[in] Volume level to establish.

Return Values

Returns S_OK if successful, an error code otherwise.

Requirements

Header: Declared in Xact.h.

See Also

IXACTEngine | IXACTEngine::GetCategory