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

# Interleave

> Interleave

# Interleave

이 함수는 지정된 프레임에 해당하는 모든 샘플이 연속되도록 오디오 샘플을 인터리브합니다.

## 구문

```cpp theme={null}
void DSP::Interleave(  
         XMVECTOR* __restrict pOutput,  
         const XMVECTOR* __restrict pInput,  
         const size_t uChannelCount,  
         const size_t uFrameCount  
)  
```

### 매개 변수

*pOutput*   \_Out\_writes\_((uChannelCount \* uFrameCount) / 4)\
형식: XMVECTOR\* \_\_restrict

인터리브된 형태의 샘플을 받는 호출자 제공 XMVECTOR 요소 배열입니다. *pInput*과 겹칠 수 없으며 최소한 (*uChannelCount* × *uFrameCount*) ÷ 4개의 요소를 가져야 합니다.

*pInput*   \_In\_reads\_((uChannelCount \* uFrameCount) / 4)\
형식: XMVECTOR\* \_\_restrict

디인터리브된 형태의 오디오 샘플을 제공하는 호출자 제공 XMVECTOR 요소 배열입니다. *pOutput*과 겹칠 수 없으며 최소한 (*uChannelCount* × *uFrameCount*) ÷ 4개의 요소를 가져야 합니다.

*uChannelCount*   \_In\_\
형식: size\_t

데이터에 포함된 채널 수입니다. *uChannelCount*는 1보다 커야 합니다.

*uFrameCount*   \_In\_\
형식: size\_t

유효한 데이터의 프레임 수입니다. *uFrameCount*는 0보다 커야 합니다.

### 반환 값

형식: void

없음.

## 설명

예를 들어 \[LLLRRR] 형태의 오디오는 \[LRLRLR]이 됩니다. Interleave 클래스 및 멤버에 대한 자세한 내용은 [Interleave Class](https://learn.microsoft.com/previous-versions/microsoft-robotics/bb842567\(v%3Dmsdn.10\))를 참조하세요. Deinterleave 함수에 대한 자세한 내용은 [Deinterleave](/reference/audio/xdsp/functions/deinterleave)를 참조하세요.

## 요구 사항

**헤더:** xdsp.h

**지원 플랫폼:** XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 관련 항목

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

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

[Microsoft Audio/Video Interleaved](https://wiki.multimedia.cx/index.php/Microsoft_Audio/Video_Interleaved)


## Related topics

- [Deinterleave](/ko/reference/audio/xdsp/functions/deinterleave.md)
