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

# SetShapeXmaNumLoops

> SetShapeXmaNumLoops

# SetShapeXmaNumLoops

XMA 컨텍스트 루프 수를 설정합니다.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT SetShapeXmaNumLoops(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 numLoops  
)  
```

<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) 객체에 대한 포인터입니다.

*numLoops*   \
Type: UINT32

루프 수로, 0부터 `SHAPE_XMA_MAX_LOOP_COUNT`(254)까지입니다. `SHAPE_XMA_INFINITE_LOOP_COUNT`(255)는 연속 루프를 지정합니다.

<a id="retvalSection" />

### Return value

Type: HRESULT

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

<a id="remarksSection" />

## Remarks

XMA 컨텍스트 루프에 대한 지침은 [ACP 개요](/build/console-features/audio/overviews/acp-overview)의 [PCM 및 XMA 데이터에 SRC 사용에 대한 지침](/build/console-features/audio/overviews/acp-overview#ID4EUPAC)을 참조하세요.

현재 루프 수를 가져오려면 [GetShapeXmaNumLoops](/reference/audio/shapexmacontext/functions/getshapexmanumloops)를 사용하세요.

자세한 내용은 [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

- [GetShapeXmaNumLoops](/ko/reference/audio/shapexmacontext/functions/getshapexmanumloops.md)
- [ShapeXmaContext](/ko/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaLoopSubframeSkip](/ko/reference/audio/shapexmacontext/functions/setshapexmaloopsubframeskip.md)
- [SetShapeXmaLoopEndOffset](/ko/reference/audio/shapexmacontext/functions/setshapexmaloopendoffset.md)
- [SetShapeXmaLoopStartOffset](/ko/reference/audio/shapexmacontext/functions/setshapexmaloopstartoffset.md)
