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

# SetShapeXmaNumChannels

> SetShapeXmaNumChannels

# SetShapeXmaNumChannels

채널 수를 설정합니다.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT SetShapeXmaNumChannels(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 numChannels  
)  
```

<a id="parametersSection" />

### Parameters

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

[SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context) 객체에 대한 포인터입니다.

*numChannels*   \
Type: UINT32

채널 수로, 1(모노) 또는 2(스테레오)입니다.

<a id="retvalSection" />

### Return value

Type: HRESULT

HRESULT 성공 또는 오류 코드입니다.

<a id="remarksSection" />

## Remarks

이 함수는 컨텍스트의 실제 채널 수를 설정합니다. ([SHAPE\_XMA\_CONTEXT](/reference/audio/shapexmacontext/structs/shape_xma_context) 객체에서 `numChannels` 멤버는 0 \[모노] 또는 1 \[스테레오] 값을 포함합니다.)

현재 채널 수를 가져오려면 [GetShapeXmaNumChannels](/reference/audio/shapexmacontext/functions/getshapexmanumchannels)를 사용하세요.

자세한 내용은 [SHAPE 개요](/build/console-features/audio/overviews/shape-overview)의 [XMA](/build/console-features/audio/overviews/shape-overview#ID4EYD) 섹션을 참조하세요.

<a id="requirementsSection" />

## Requirements

**Header:** shapexmacontext.h

**Supported platforms:** XBOX One 제품군 콘솔 및 XBOX Series 콘솔

<a id="seealsoSection" />

## See also

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


## Related topics

- [GetShapeXmaNumChannels](/ko/reference/audio/shapexmacontext/functions/getshapexmanumchannels.md)
- [ShapeXmaContext](/ko/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeDmaNumChannels](/ko/reference/audio/shapedmacontext/functions/setshapedmanumchannels.md)
- [SetShapeXmaNumLoops](/ko/reference/audio/shapexmacontext/functions/setshapexmanumloops.md)
- [SetShapeXmaNumSubframesToDecode](/ko/reference/audio/shapexmacontext/functions/setshapexmanumsubframestodecode.md)
