> ## 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 と DirectX SDK ブログ](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](/ja-jp/reference/audio/xdsp/functions/deinterleave.md)
