> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FFTPolar

> FFTPolar

Converts complex components into their polar form.

## Syntax

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

### Parameters

*pOutput*   \_Out\_writes\_(uLength / 4)\
Type: XMVECTOR\* \_\_restrict

Caller-supplied output buffer that receives samples in polar form. *pOutput* must have at least *uLength* ÷ 4 elements.

*pInputReal*   \_In\_reads\_(uLength / 4)\
Type: XMVECTOR\* \_\_restrict

This is where each element is the real component of a complex number. *pInputReal* must have at least *uLength* ÷ 4 elements.

*pInputImaginary*   \_In\_reads\_(uLength / 4)\
Type: XMVECTOR\* \_\_restrict

This is where each element is the imaginary component of a complex number. *pInputImaginary* must have at least *uLength* ÷ 4 elements.

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

Length of all the vectors in elements. *uLength* must be a power of 2 greater than or equal to 4.

### Return value

Type: void

None.

## Remarks

All the buffer parameters must be 16-byte aligned. Audio data must be FLOAT32. The values of the *pOutput*, *pInputReal*, and *pInputImaginary* parameters must not overlap.

## Requirements

**Header:** xdsp.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[xdsp](https://docs.xbox.com/reference/audio/xdsp/xdsp_members.md)

[Game for Windows and the DirectX SDK blog](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](https://docs.xbox.com/reference/audio/xdsp/xdsp_members.md)
- [Axis](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-axis.md)
- [ResponseCurve](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve.md)
- [XDspActivationOptions](https://docs.xbox.com/reference/audio/xdspaudio/enums/xdspactivationoptions.md)
- [XDSP overview](https://docs.xbox.com/build/console-features/audio/overviews/xdsp-overview.md)
