IXAPO::Initialize method (xapo.h)
Performs any effect-specific initialization.
HRESULT Initialize(
const void *pData,
UINT32 DataByteSize
);
pData
Effect-specific initialization parameters, may be NULL if DataByteSize is 0.
DataByteSize
Size of pData in bytes, may be 0 if pData is NULL.
Returns S_OK if successful, an error code otherwise.
The contents of pData are defined by a given XAPO. Immutable parameters (constant for the lifetime of the XAPO) should be set in this method. Once initialized, an XAPO cannot be initialized again. An XAPO should be initialized before passing it to XAudio2 as part of an effect chain.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | xapo.h |