CreateHrtfApo function

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

Syntax

HRESULT CreateHrtfApo(
  const HrtfApoInit *init,
  IXAPO             **xApo
);

Parameters

init

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

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

   
Target Platform Windows
Header hrtfapoapi.h
DLL HrtfApo.dll

See Also

Functions

IXAPO