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

# FFTPolar

> FFTPolar

# FFTPolar

将复数分量转换为其极坐标形式。

## 语法

```cpp theme={null}
void DSP::FFTPolar(  
         XMVECTOR* __restrict pOutput,  
         const XMVECTOR* __restrict pInputReal,  
         const XMVECTOR* __restrict pInputImaginary,  
         const size_t uLength  
)  
```

### 参数

*pOutput*   \_Out\_writes\_(uLength / 4)\
类型：XMVECTOR\* \_\_restrict

调用方提供的输出缓冲区，用于接收极坐标形式的采样。*pOutput* 的元素数量至少必须为 *uLength* ÷ 4。

*pInputReal*   \_In\_reads\_(uLength / 4)\
类型：XMVECTOR\* \_\_restrict

其中每个元素为一个复数的实部分量。*pInputReal* 的元素数量至少必须为 *uLength* ÷ 4。

*pInputImaginary*   \_In\_reads\_(uLength / 4)\
类型：XMVECTOR\* \_\_restrict

其中每个元素为一个复数的虚部分量。*pInputImaginary* 的元素数量至少必须为 *uLength* ÷ 4。

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

所有向量的元素长度。*uLength* 必须为 2 的幂且大于或等于 4。

### 返回值

类型：void

无。

## 备注

所有缓冲区参数都必须为 16 字节对齐。音频数据必须为 FLOAT32。*pOutput*、*pInputReal* 和 *pInputImaginary* 参数的值不得重叠。

## 要求

**头文件：** xdsp.h

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

## 另请参阅

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

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

[Fast and Accurate Polar Fourier Transform](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.409.2516\&rep=rep1\&type=pdf)


## Related topics

- [XDSP 概述](/zh-CN/build/console-features/audio/overviews/xdsp-overview.md)
- [XDspActivationOptions](/zh-CN/reference/audio/xdspaudio/enums/xdspactivationoptions.md)
