Share via


IXACTEngine::GetCategory

IXACTEngine::GetCategory

Retrieves the sound category index that corresponds to a friendly name string.

[Content-driven]

  XACTCATEGORY 
  GetCategory(
  PCSTR szFriendlyName
);

Parameters

  • szFriendlyName
    [in] Pointer to a buffer that contains the zero-terminated string that describes the category's friendly name.

Return Values

Returns a category index for the friendly name if successful. Otherwise, XACTCATEGORY_INVALID.

Requirements

Header: Declared in Xact.h.

Library: Use Xact.lib.

See Also

IXACTEngine | IXACTEngine::Pause, IXACTEngine::SetVolume, IXACTEngine::Stop