IApoAuxiliaryInputConfiguration::AddAuxiliaryInput method (audioenginebaseapo.h)

Adds an auxiliary input to the APO, and provides initialization parameters.

Syntax

HRESULT AddAuxiliaryInput(
  DWORD                     dwInputId,
  UINT32                    cbDataSize,
  BYTE                      *pbyData,
  APO_CONNECTION_DESCRIPTOR *pInputConnection
);

Parameters

dwInputId

Identifier for the input. This is a unique identifier generated by the system. The APO can use this identifier to differentiate between multiple auxiliary inputs.

cbDataSize

The size of the initialization data, in bytes.

pbyData

Initialization data specific to this APO.

pInputConnection

Connection descriptor for this auxiliary input connection.

Return value

HRESULT

HRESULT Description
APOERR_NUM_CONNECTIONS_INVALID The APO does not expect the auxiliary input.

Remarks

The initialization data is variable length and takes the following form. See IAudioProcessingObject::Initialize for information on using the initialization data.

struct MyAPOInitializationData
{
    APOInitBaseStruct    APOInit;
    // add additional fields here...
};

This method will only be called only when the APO is not locked for processing. This method will not be called from a real-time processing thread.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Header audioenginebaseapo.h

See also

IAudioProcessingObject::Initialize