> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetShapeXmaLoopEndOffset

> SetShapeXmaLoopEndOffset

# SetShapeXmaLoopEndOffset

XMA コンテキストのループの終了オフセットを設定します。

## 構文

```cpp theme={null}
HRESULT SetShapeXmaLoopEndOffset(  
         SHAPE_XMA_CONTEXT* context,  
         UINT32 offset  
)  
```

### パラメーター

*context*   \_Inout\_\
型: [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/structs/shape_xma_context.md)\*

[SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/structs/shape_xma_context.md) オブジェクトへのポインター。

*offset*   \
型: UINT32

デコードを終了する位置を示す、読み取りバッファ ポインターからのオフセット (ビット単位)。

### 戻り値

型: HRESULT

HRESULT の成功またはエラー コード。

## 解説

XMA コンテキストのループに関するガイダンスについては、[ACP の概要](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/acp-overview.md) の [PCM および XMA データに対する SRC 使用のガイドライン](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/acp-overview.md#ID4EUPAC) を参照してください。

現在の終了オフセットを取得するには、[GetShapeXmaLoopEndOffset](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaloopendoffset.md) を使用します。

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

## 要件

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

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

## 関連項目

[ShapeXmaContext](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/shapexmacontext_members.md)


## Related topics

- [GetShapeXmaLoopEndOffset](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaloopendoffset.md)
- [ShapeXmaContext](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaLoopStartOffset](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaloopstartoffset.md)
- [SetShapeXmaLoopSubframeEnd](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/setshapexmaloopsubframeend.md)
- [GetShapeXmaLoopStartOffset](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaloopstartoffset.md)
