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

# FFTInterleaved

> FFTInterleaved

# FFTInterleaved

Aplica uma transformada rápida de Fourier (FFT) de 2<sup>N</sup> amostras e reorganiza (unswizzle) o resultado para que as amostras fiquem dispostas em ordem crescente de frequência. O áudio é primeiro desintercalado, se for multicanal.

## Sintaxe

```cpp theme={null}
void DSP::FFTInterleaved(  
         XMVECTOR* __restrict pReal,  
         XMVECTOR* __restrict pImaginary,  
         const XMVECTOR* __restrict pUnityTable,  
         const size_t uChannelCount,  
         const size_t uLog2Length  
)  
```

### Parâmetros

*pReal*   \_Inout\_updates\_(((1 \<\< uLog2Length) \* uChannelCount) / 4)\
Tipo: XMVECTOR\* \_\_restrict

Componentes reais da FFT. Deve ter pelo menos (1 \<\< *uLog2Length* × *uChannelCount*) ÷ 4 elementos.

*pImaginary*   \_Out\_writes\_(((1 \<\< uLog2Length) \* uChannelCount) / 4)\
Tipo: XMVECTOR\* \_\_restrict

Componentes imaginários da FFT. Deve ter pelo menos (1 \<\< *uLog2Length* × *uChannelCount*) ÷ 4 elementos.

*pUnityTable*   \_In\_reads\_(1 \<\< uLog2Length)\
Tipo: XMVECTOR\* \_\_restrict

Tabela de unidade a ser usada pela FFT. Deve ter pelo menos (1 \<\< *uLog2Length*) elementos.

*uChannelCount*   \_In\_\
Tipo: size\_t

Número de canais na FFT. *uChannelCount* deve estar dentro de \[1, 6].

*uLog2Length*   \_In\_\
Tipo: size\_t

Log de base 2 do comprimento da FFT em quadros. *uLog2Length* deve estar dentro de \[2, 9].

### Valor de retorno

Tipo: void

Nenhum.

## Comentários

A memória apontada pelos parâmetros pReal, pImaginary e pUnityTable não deve se sobrepor. Use a função FFTIntializeUnityTable para atribuir um valor ao parâmetro pUnityTable. A função FFTInitializedUnityTable inicializa uma tabela de pesquisa de raízes da unidade usada pelas funções FFT.

## Requisitos

**Cabeçalho:** xdsp.h

**Plataformas compatíveis:** consoles da família XBOX One e consoles XBOX Series

## Confira também

[xdsp](/pt-BR/reference/audio/xdsp/xdsp_members)

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

[Deinterleave](/pt-BR/reference/audio/xdsp/functions/deinterleave)

[FFTInitializeUnityTable](/pt-BR/reference/audio/xdsp/functions/fftinitializeunitytable)

[FFTUnswizzle](/pt-BR/reference/audio/xdsp/functions/fftunswizzle)


## Related topics

- [FFTInitializeUnityTable](/pt-BR/reference/audio/xdsp/functions/fftinitializeunitytable.md)
- [Deinterleave](/pt-BR/reference/audio/xdsp/functions/deinterleave.md)
- [FFTUnswizzle](/pt-BR/reference/audio/xdsp/functions/fftunswizzle.md)
- [Interleave](/pt-BR/reference/audio/xdsp/functions/interleave.md)
- [PartyAudioFormat](/pt-BR/services/playfab/multiplayer/networking/reference/structs/partyaudioformat.md)
