Skip to content

Interleave

Chuck Walbourn edited this page May 23, 2016 · 1 revision

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].

For Use

  • Universal Windows Platform apps
  • Windows desktop apps
  • Windows 11
  • Windows 10
  • Windows 8.1
  • Xbox One
  • Xbox Series X|S
  • Windows Subsystem for Linux

Architecture

  • x86
  • x64
  • ARM64

For Development

  • Visual Studio 2022
  • Visual Studio 2019 (16.11)
  • clang/LLVM v12 - v18
  • GCC 10.5, 11.4, 12.3
  • MinGW 12.2, 13.2
  • Intel Classic Compiler
  • Intel oneAPI Compiler

Related Projects

DirectX Tool Kit for DirectX 11

DirectX Tool Kit for DirectX 12

DirectXMesh

DirectXTex

Tools

Test Suite

See also

DirectX Landing Page

Clone this wiki locally