IXAPO::CalcOutputFrames Method

Returns the number of output frames that will be generated from a given number of input frames.

Syntax

public:
UINT32 CalcOutputFrames(
         UINT32 InputFrameCount
)  

Parameters

InputFrameCount
Type: UINT32 

The number of input frames.

Return value

Type: UINT32 

Returns the number of output frames that will be produced.

Remarks

XAudio2 calls this method to determine how large of an output buffer an XAPO will require for a certain number of input frames. CalcOutputFrames is only called by XAudio2 if the XAPO is locked.

This function should not block, because it may be called from the realtime audio processing thread.

Requirements

Header: Declared in xapo.h.

Library: Use xapobase.lib.

See also

IXAPO

IXAPO Members