Returns the number of output frames that will be generated from a given number of input frames.
public:
UINT32 CalcOutputFrames(
UINT32 InputFrameCount
)
InputFrameCount
Type: UINT32
The number of input frames.
Type: UINT32
Returns the number of output frames that will be produced.
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.
Header: Declared in xapobase.h.
Library: Use xapobase.lib.