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

# SetShapeSrcXmaBlocksToSkip

> SetShapeSrcXmaBlocksToSkip

# SetShapeSrcXmaBlocksToSkip

设置启动时要跳过的 XMA 块数。

## 语法

```cpp theme={null}
HRESULT SetShapeSrcXmaBlocksToSkip(  
         SHAPE_SRC_CONTEXT* context,  
         UINT32 xmaBlocksToSkip  
)  
```

### 参数

*context*   \_Inout\_\
类型：[SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/structs/shape_src_context.md)\*

指向 [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/structs/shape_src_context.md) 对象的指针。

*xmaBlocksToSkip*   \
类型：UINT32

要跳过的块数。

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

## 备注

要跳过的 XMA 块的最大数量为 3。（每个块最多包含 128 个样本，因此最多可跳过 384 个样本。）若要获取当前跳过数量，请使用 [GetShapeSrcXmaBlocksToSkip](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/functions/getshapesrcxmablockstoskip.md)。

有关 SRC 的更多信息，请参阅 [SHAPE 概述](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/shape-overview.md)中的[采样率转换器 (SRC) 块](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/shape-overview.md#ID4EOE)。

## 要求

**标头：** shapesrccontext.h

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[ShapeSrcContext](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/shapesrccontext_members.md)


## Related topics

- [GetShapeSrcXmaBlocksToSkip](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/functions/getshapesrcxmablockstoskip.md)
- [ShapeSrcContext](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [SetShapeXmaLoopSubframeSkip](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/setshapexmaloopsubframeskip.md)
- [SetShapeXmaNumSubframesToSkip](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/setshapexmanumsubframestoskip.md)
- [GetShapeXmaLoopSubframeSkip](https://docs.xbox.com/zh-CN/reference/audio/shapexmacontext/functions/getshapexmaloopsubframeskip.md)
