1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-09-18 22:29:53 +00:00
1 Deinterleave
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.

Deinterleaves audio samples such that all samples corresponding to a given channel are contiguous.

void Deinterleave(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 deinterleaved 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 interleaved 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 [LRLRLR] becomes [LLLRRR].