IXAPO::CalcInputFrames Method

Returns the number of input frames required to generate the given number of output frames.

Syntax

public:
UINT32 CalcInputFrames(
         UINT32 OutputFrameCount
)  

Parameters

OutputFrameCount
Type: UINT32 

The number of output frames desired.

Return value

Type: UINT32 

Returns the number of input frames required.

Remarks

XAudio2 calls this method to determine what size input buffer an XAPO requires to generate the given number of output frames. This method only needs to be called once while an XAPO is locked. CalcInputFrames 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