Share via


IXACTEngine::SetVolume

IXACTEngine::SetVolume

Sets the volume of a sound category.

[Content-driven]

  HRESULT 
  SetVolume(
  XACTCATEGORY nCategory,
  XACTVOLUME nVolume
);

Parameters

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

Return Values

Returns S_OK if successful. Otherwise, an error code.

Requirements

Header: Declared in Xact.h.

Library: Use Xact.lib.

See Also

IXACTEngine | IXACTEngine::GetCategory