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

# FFTInitializeUnityTable

> FFTInitializeUnityTable

# FFTInitializeUnityTable

初始化快速傅里叶变换函数所使用的单位根查找表。

## 语法

```cpp theme={null}
void DSP::FFTInitializeUnityTable(  
         XMVECTOR* __restrict pUnityTable,  
         size_t uLength  
)  
```

### 参数

*pUnityTable*   \_Out\_writes\_(uLength)\
类型：XMVECTOR\* \_\_restrict

调用方提供的 XMVECTOR 元素数组，将使用单位表的值进行填充。传递给 *pUnityTable* 的数组长度必须至少为 *uLength* 个元素。

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

以帧为单位的 FFT 长度（采样计数/通道数）。*uLength* 必须为 2 的幂且大于 16。

### 返回值

类型：void

无。

## 备注

一旦完成初始化，除非需要不同的 FFT 长度，否则无需再次初始化该表。

FFT 长度为 16 及以下时使用的单位表已硬编码到对应的 FFT 函数中：[FFT16](/reference/audio/xdsp/functions/fft16)、[FFT8](/reference/audio/xdsp/functions/fft8) 和 [FFT4](/reference/audio/xdsp/functions/fft4)。这些函数无需初始化。

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

## 要求

**头文件：** xdsp.h

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

## 另请参阅

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

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


## Related topics

- [ButterflyDIT4_4](/zh-CN/reference/audio/xdsp/functions/butterflydit4_4.md)
- [FFT](/zh-CN/reference/audio/xdsp/functions/fft.md)
- [Initialize](/zh-CN/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_initialize.md)
- [PlayFabMultiplayer.Initialize](/zh-CN/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/Initialize.md)
- [HCInitialize](/zh-CN/reference/live/httpclient/httpclient/functions/hcinitialize.md)
