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

# SHAPE_XMA_SAMPLE_RATE

> SHAPE_XMA_SAMPLE_RATE

# SHAPE\_XMA\_SAMPLE\_RATE

有效的采样率。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
enum SHAPE_XMA_SAMPLE_RATE  
{  
    SHAPE_XMA_SAMPLE_RATE_24K,  
    SHAPE_XMA_SAMPLE_RATE_32K,  
    SHAPE_XMA_SAMPLE_RATE_44_1K,  
    SHAPE_XMA_SAMPLE_RATE_48K  
}  
```

<a id="constantsSection" />

## 常量

| 常量                               | 说明       |
| -------------------------------- | -------- |
| SHAPE\_XMA\_SAMPLE\_RATE\_24K    | 24 KHz   |
| SHAPE\_XMA\_SAMPLE\_RATE\_32K    | 32 KHz   |
| SHAPE\_XMA\_SAMPLE\_RATE\_44\_1K | 44.1 KHz |
| SHAPE\_XMA\_SAMPLE\_RATE\_48K    | 48 KHz   |

<a id="remarksSection" />

## 备注

此枚举用于 [GetShapeXmaSampleRate](/reference/audio/shapexmacontext/functions/getshapexmasamplerate) 和 [SetShapeXmaSampleRate(SHAPE\_XMA\_CONTEXT\*, SHAPE\_XMA\_SAMPLE\_RATE)](/reference/audio/shapexmacontext/functions/setshapexmasamplerate) 函数中。传递给 [SetShapeXmaSampleRate(SHAPE\_XMA\_CONTEXT\*, UINT32)](/reference/audio/shapexmacontext/functions/setshapexmasamplerate_2) 函数的值在存储到上下文之前会被转换为此枚举的成员。

有关详细信息,请参阅 [Overview of 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

- [SetShapeXmaSampleRate(SHAPE_XMA_CONTEXT*, SHAPE_XMA_SAMPLE_RATE)](/zh-CN/reference/audio/shapexmacontext/functions/setshapexmasamplerate.md)
- [GetShapeXmaSampleRate](/zh-CN/reference/audio/shapexmacontext/functions/getshapexmasamplerate.md)
- [ShapeXmaContext](/zh-CN/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SHAPE_XMA_CONTEXT](/zh-CN/reference/audio/shapexmacontext/structs/shape_xma_context.md)
- [GetXmaSampleRate](/zh-CN/reference/audio/xma2defs/functions/getxmasamplerate.md)
