> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deinterleave

> Deinterleave

# Deinterleave

此函数对音频样本进行去交错处理,使对应于指定通道的所有样本连续存放。

## Syntax

```cpp theme={null}
void DSP::Deinterleave(  
         XMVECTOR* __restrict pOutput,  
         const XMVECTOR* __restrict pInput,  
         const size_t uChannelCount,  
         const size_t uFrameCount  
)  
```

### Parameters

*pOutput*   \_Out\_writes\_((uChannelCount \* uFrameCount) / 4)\
Type: XMVECTOR\* \_\_restrict

调用方提供的 XMVECTOR 元素数组,用于接收去交错形式的样本。它不能与 pInput 重叠,并且必须至少具有 (*uChannelCount* × *uFrameCount*) ÷ 4 个元素。

*pInput*   \_In\_reads\_((uChannelCount \* uFrameCount) / 4)\
Type: XMVECTOR\* \_\_restrict

调用方提供的 XMVECTOR 元素数组,用于提供交错形式的音频样本。它不能与 pOutput 重叠,并且必须至少具有 (*uChannelCount* × *uFrameCount*) ÷ 4 个元素。

*uChannelCount*   \_In\_\
Type: size\_t

数据中包含的通道数。*uChannelCount* 必须大于 1。

*uFrameCount*   \_In\_\
Type: size\_t

有效数据的帧数。*uFrameCount* 必须大于 0。

### Return value

Type: void

无。

## Remarks

例如,格式为 \[LRLRLR] 的音频将变为 \[LLLRRR]。有关去交错音频通道的详细信息,请参阅 [使用 SIMD 指令去交错音频通道](https://stackoverflow.com/questions/39196188/de-interleave-audio-channels-using-simd-instructions)。有关交错函数的详细信息,请参阅 [Interleave](/reference/audio/xdsp/functions/interleave)。

## Requirements

**头文件:** xdsp.h

**支持的平台:** XBOX One 系列主机和 XBOX Series 主机

## See also

[xdsp](/reference/audio/xdsp/xdsp_members)

[Game for Windows and the DirectX SDK 博客](https://walbourn.github.io/xdsp-h-digital-signal-processing-helper-functions/)

[FFTInterleaved](/reference/audio/xdsp/functions/fftinterleaved)


## Related topics

- [Interleave](/zh-CN/reference/audio/xdsp/functions/interleave.md)
