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

# FFTInterleaved

> FFTInterleaved

# FFTInterleaved

套用 2<sup>N</sup> 個樣本的快速傅立葉轉換 (FFT)，並取消結果的重新排列 (unswizzle)，使樣本依頻率遞增排列。如果音訊為多通道，會先將其解除交錯。

## 語法

```cpp theme={null}
void DSP::FFTInterleaved(  
         XMVECTOR* __restrict pReal,  
         XMVECTOR* __restrict pImaginary,  
         const XMVECTOR* __restrict pUnityTable,  
         const size_t uChannelCount,  
         const size_t uLog2Length  
)  
```

### 參數

*pReal*   \_Inout\_updates\_(((1 \<\< uLog2Length) \* uChannelCount) / 4)\
類型：XMVECTOR\* \_\_restrict

FFT 的實數分量。必須至少有 (1 \<\< *uLog2Length* × *uChannelCount*) ÷ 4 個元素。

*pImaginary*   \_Out\_writes\_(((1 \<\< uLog2Length) \* uChannelCount) / 4)\
類型：XMVECTOR\* \_\_restrict

FFT 的虛數分量。必須至少有 (1 \<\< *uLog2Length* × *uChannelCount*) ÷ 4 個元素。

*pUnityTable*   \_In\_reads\_(1 \<\< uLog2Length)\
類型：XMVECTOR\* \_\_restrict

FFT 要使用的單位根表。必須至少有 (1 \<\< *uLog2Length*) 個元素。

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

FFT 中的通道數目。*uChannelCount* 必須在 \[1, 6] 範圍內。

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

FFT 長度 (以框架為單位) 的以 2 為底的對數。*uLog2Length* 必須在 \[2, 9] 範圍內。

### 傳回值

類型：void

無。

## 備註

參數 pReal、pImaginary 和 pUnityTable 所指向的記憶體不得重疊。請使用 FFTIntializeUnityTable 函式為 pUnityTable 參數指派值。FFTInitializedUnityTable 函式會初始化 FFT 函式所使用的單位根查閱表。

## 需求

**標頭：** 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/)

[Deinterleave](/zh-TW/reference/audio/xdsp/functions/deinterleave)

[FFTInitializeUnityTable](/zh-TW/reference/audio/xdsp/functions/fftinitializeunitytable)

[FFTUnswizzle](/zh-TW/reference/audio/xdsp/functions/fftunswizzle)


## Related topics

- [FFTInterleaved](/reference/audio/xdsp/functions/fftinterleaved.md)
- [FFTInitializeUnityTable](/reference/audio/xdsp/functions/fftinitializeunitytable.md)
- [Deinterleave](/reference/audio/xdsp/functions/deinterleave.md)
- [FFTUnswizzle](/reference/audio/xdsp/functions/fftunswizzle.md)
