CreateHrtfApo function (hrtfapoapi.h)

Creates an instance of the IXAPO interface for head-related transfer function (HRTF) processing.

Syntax

HRESULT CreateHrtfApo(
  [in]  const HrtfApoInit *init,
  [out] IXAPO             **xApo
);

Parameters

[in] init

Pointer to an HrtfApoInit struct. Specifies parameters for XAPO interface initialization.

[out] xApo

The new instance of the IXAPO interface.

Return value

This function can return the following values.

Return code Description
S_OK
An instance of the XAPO object was created successfully.
E_NOTIMPL
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

Requirement Value
Target Platform Windows
Header hrtfapoapi.h
DLL HrtfApo.dll

See also

Functions

IXAPO