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

# FFT

> FFT

# FFT

具有任意樣本數目的快速傅立葉轉換。

## 語法

```cpp theme={null}
void FFT(  
         XMVECTOR* __restrict pReal,  
         XMVECTOR* __restrict pImaginary,  
         const XMVECTOR* __restrict pUnityTable,  
         const size_t uLength,  
         const size_t uCount= 1  
)  
```

### 參數

*pReal*   \_Inout\_updates\_((uLength \* uCount) / 4)\
類型：XMVECTOR\* \_\_restrict

FFT 的實數分量。必須至少有 (*uLength* × *uCount*) ÷ 4 個元素。

*pImaginary*   \_Inout\_updates\_((uLength \* uCount) / 4)\
類型：XMVECTOR\* \_\_restrict

FFT 的虛數分量。必須至少有 (*uLength* × *uCount*) ÷ 4 個元素。

*pUnityTable*   \_In\_reads\_(uLength \* uCount)\
類型：XMVECTOR\* \_\_restrict

FFT 要使用的單位根表。必須至少有 *uLength* × *uCount* 個 XMVECTOR。如需詳細資訊，請參閱 [FFTInitializeUnityTable](/zh-TW/reference/audio/xdsp/functions/fftinitializeunitytable)。

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

FFT 長度 (以樣本為單位)。*uLength* 必須是 2 的乘冪且大於 16。

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

FFT 反覆運算次數。

### 傳回值

類型：void

無。

## 備註

對於樣本數目小於或等於 16 的 FFT，請使用 [FFT16](/zh-TW/reference/audio/xdsp/functions/fft16)、[FFT8](/zh-TW/reference/audio/xdsp/functions/fft8) 或 [FFT4](/zh-TW/reference/audio/xdsp/functions/fft4)。

所有緩衝區參數都必須為 16 位元組對齊。音訊資料必須是 FLOAT32 單聲道。

## 需求

**標頭：** xdsp.h

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

## 另請參閱

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


## Related topics

- [FFT](/reference/audio/xdsp/functions/fft.md)
- [Overview of a single stream FFT/IFFT using the XDSP API](/build/console-features/audio/overviews/xdsp-overview-single-stream-fft-ifft.md)
- [使用 XDSP API 进行单流 FFT/IFFT 概述](/zh-CN/build/console-features/audio/overviews/xdsp-overview-single-stream-fft-ifft.md)
- [XDSP API를 사용한 싱글 스트림 FFT/IFFT 개요](/ko/build/console-features/audio/overviews/xdsp-overview-single-stream-fft-ifft.md)
- [Información general de una FFT/IFFT de secuencia única mediante la API XDSP](/es/build/console-features/audio/overviews/xdsp-overview-single-stream-fft-ifft.md)
