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

# FFT4

> FFT4

# FFT4

具有 4 个样本的快速傅里叶变换。

## Syntax

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

### Parameters

*pReal*   \_Inout\_updates\_(uCount)\
Type: XMVECTOR\* \_\_restrict

FFT 的实部分量。必须至少具有 *uCount* 个元素。

*pImaginary*   \_Inout\_updates\_(uCount)\
Type: XMVECTOR\* \_\_restrict

FFT 的虚部分量。必须至少具有 *uCount* 个元素。

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

FFT 迭代次数。

### Return value

Type: void

无。

## Remarks

对于样本数小于或等于 16 的 FFT,请使用 [FFT16](/reference/audio/xdsp/functions/fft16)、[FFT8](/reference/audio/xdsp/functions/fft8) 或 [FFT4](/reference/audio/xdsp/functions/fft4)。

所有缓冲区参数必须按 16 字节对齐。音频数据必须为 FLOAT32 单声道。

## Requirements

**头文件:** xdsp.h

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

## See also

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


## Related topics

- [FFT](/zh-CN/reference/audio/xdsp/functions/fft.md)
- [FFT16](/zh-CN/reference/audio/xdsp/functions/fft16.md)
- [FFT8](/zh-CN/reference/audio/xdsp/functions/fft8.md)
- [FFTInitializeUnityTable](/zh-CN/reference/audio/xdsp/functions/fftinitializeunitytable.md)
- [ButterflyDIT4_1](/zh-CN/reference/audio/xdsp/functions/butterflydit4_1.md)
