1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-23 04:40:05 +00:00
1 Interleave
Chuck Walbourn edited this page 2016-05-23 16:28:39 -07:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Interleaves audio samples such that all samples corresponding to a given frame are contiguous.

void Interleave (XMVECTOR* pOutput, const XMVECTOR* pInput,
    const size_t uChannelCount, const size_t uFrameCount);

Parameters

pOutput

[out] Caller-provided array of XVECTOR elements that receives the samples in interleaved form. It cannot overlap pInput and it must have at least (uChannelCount × uFrameCount) ÷ 4 elements.

pInput

[in] Caller-provided array of XVECTOR elements that supplies audio samples in deinterleaved form. It cannot overlap pOutput and it must have at least (uChannelCount × uFrameCount) ÷ 4 elements.

uChannelCount

[in] The number of channels contained in the data. uChannelCount must be greater than 1.

uFrameCount

[in] The number of frames of valid data. uFrameCount must be greater than 0.

Remarks

For example, audio of the form [LLLRRR] becomes [LRLRLR].