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

Initializes a unity roots lookup table used by Fast Fourier Transform functions.

## Syntax

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

### Parameters

*pUnityTable*   \_Out\_writes\_(uLength)\
Type: XMVECTOR\* \_\_restrict

Caller-provided array of XMVECTOR elements that will be populated with the unity table values. The array passed to *pUnityTable* must be at least *uLength* elements long.

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

FFT length in frames (sample count / channel count). *uLength* must be a power of two and greater than 16.

### Return value

Type: void

None.

## Remarks

Once it is initialized, the table does not need to be initialized again unless you require a different FFT length.

Unity tables for FFT lengths of 16 and below are hard-coded into the respective FFT functions: [FFT16](/reference/audio/xdsp/functions/fft16), [FFT8](/reference/audio/xdsp/functions/fft8), and [FFT4](/reference/audio/xdsp/functions/fft4). They do not need to be initialized.

All buffer parameters must be 16-byte aligned. Audio data must be FLOAT32 mono.

## Requirements

**Header:** xdsp.h

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

## See also

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

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


## Related topics

- [ButterflyDIT4_4](/reference/audio/xdsp/functions/butterflydit4_4.md)
- [FFT](/reference/audio/xdsp/functions/fft.md)
- [Table of intrinsics](/tools/tools-console/visualstudio/table-of-intrinsics.md)
- [PlayFabMultiplayer.Initialize](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/Initialize.md)
- [Using Prize Tables](/services/playfab/community/leaderboards/tournaments-leaderboards/using-prize-tables.md)
