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

# GetShapeXmaNumChannels

> GetShapeXmaNumChannels

# GetShapeXmaNumChannels

チャンネル数を取得します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
UINT32 GetShapeXmaNumChannels(  
         const SHAPE_XMA_CONTEXT* context  
)  
```

<a id="parametersSection" />

### パラメーター

*context*   \_In\_\
型: [SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context)\*

[SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context) オブジェクトへのポインター。

<a id="retvalSection" />

### 戻り値

型: UINT32

チャンネル数。1 (モノラル) または 2 (ステレオ) のいずれか。

<a id="remarksSection" />

## 解説

この関数は、コンテキスト内の実際のチャンネル数を返します。([SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context) オブジェクトでは、`numChannels` メンバーには 0 \[モノラル] または 1 \[ステレオ] の値が含まれます。)

チャンネル数を設定するには、[SetShapeXmaNumChannels](/reference/audio/shapexmacontext/functions/setshapexmanumchannels) を使用します。

詳細については、[SHAPE の概要](/build/console-features/audio/overviews/shape-overview) の [XMA](/build/console-features/audio/overviews/shape-overview#ID4EYD) セクションを参照してください。

<a id="requirementsSection" />

## 要件

**ヘッダー:** shapexmacontext.h

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

<a id="seealsoSection" />

## 関連項目

[ShapeXmaContext](/reference/audio/shapexmacontext/shapexmacontext_members)


## Related topics

- [SetShapeXmaNumChannels](/ja-jp/reference/audio/shapexmacontext/functions/setshapexmanumchannels.md)
- [ShapeXmaContext](/ja-jp/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [GetShapeDmaNumChannels](/ja-jp/reference/audio/shapedmacontext/functions/getshapedmanumchannels.md)
- [GetShapeXmaNumLoops](/ja-jp/reference/audio/shapexmacontext/functions/getshapexmanumloops.md)
- [GetShapeXmaNumSubframesToDecode](/ja-jp/reference/audio/shapexmacontext/functions/getshapexmanumsubframestodecode.md)
