> ## 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

此函式會將音訊樣本解除交錯，使對應至指定通道的所有樣本都是連續的。

## 語法

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

### 參數

*pOutput*   \_Out\_writes\_((uChannelCount \* uFrameCount) / 4)\
類型：XMVECTOR\* \_\_restrict

呼叫端提供的 XMVECTOR 元素陣列，以解除交錯的形式接收樣本。它不能與 pInput 重疊，且必須至少有 (*uChannelCount* × *uFrameCount*) ÷ 4 個元素。

*pInput*   \_In\_reads\_((uChannelCount \* uFrameCount) / 4)\
類型：XMVECTOR\* \_\_restrict

呼叫端提供的 XMVECTOR 元素陣列，以交錯的形式提供音訊樣本。它不能與 pOutput 重疊，且必須至少有 (*uChannelCount* × *uFrameCount*) ÷ 4 個元素。

*uChannelCount*   \_In\_\
類型：size\_t

資料中包含的通道數目。*uChannelCount* 必須大於 1。

*uFrameCount*   \_In\_\
類型：size\_t

有效資料的框架數目。*uFrameCount* 必須大於 0。

### 傳回值

類型：void

無。

## 備註

例如，\[LRLRLR] 形式的音訊會變成 \[LLLRRR]。如需解除交錯音訊通道的詳細資訊，請參閱[使用 SIMD 指令解除交錯音訊通道](https://stackoverflow.com/questions/39196188/de-interleave-audio-channels-using-simd-instructions)。如需交錯函式的詳細資訊，請參閱 [Interleave](/zh-TW/reference/audio/xdsp/functions/interleave)。

## 需求

**標頭：** xdsp.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[xdsp](/zh-TW/reference/audio/xdsp/xdsp_members)

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

[FFTInterleaved](/zh-TW/reference/audio/xdsp/functions/fftinterleaved)


## Related topics

- [Deinterleave](/reference/audio/xdsp/functions/deinterleave.md)
- [IFFTDeinterleaved](/reference/audio/xdsp/functions/ifftdeinterleaved.md)
- [Interleave](/reference/audio/xdsp/functions/interleave.md)
