CreateHrtfApo function
Creates an instance of the IXAPO interface for head-related transfer function (HRTF) processing.
Syntax
HRESULT WINAPI CreateHrtfApo( _In_ HrtfApoInit *init, _Out_ IXAPO **xApo );
Parameters
- init [in]
-
Pointer to an HrtfApoInit struct. Specifies parameters for XAPO interface initialization.
- xApo [out]
-
The new instance of the IXAPO interface.
Return value
This function can return the following values.
| Return code | Description |
|---|---|
|
An instance of the XAPO object was created successfully. |
|
HRTF is not supported on the current platform. |
Remarks
Audio is processed in blocks of 1024 samples.
Format requirements:
- Input: mono, 48 kHz, 32-bit float PCM.
- Output: stereo, 48 kHz, 32-bit float PCM.
The source and environment parameters of the HRTF XAPO are controlled through the IXAPOHrtfParameters interface.
Platform Requirements
Windows 10 (XAudio2.9);
Requirements
|
Header |
|
|---|---|
|
DLL |
|
See also