> ## 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](/zh-TW/reference/audio/shapexmacontext/functions/getshapexmasamplerate) 和 [SetShapeXmaSampleRate(SHAPE\_XMA\_CONTEXT\*, SHAPE\_XMA\_SAMPLE\_RATE)](/zh-TW/reference/audio/shapexmacontext/functions/setshapexmasamplerate) 函式。傳遞給 [SetShapeXmaSampleRate(SHAPE\_XMA\_CONTEXT\*, UINT32)](/zh-TW/reference/audio/shapexmacontext/functions/setshapexmasamplerate_2) 函式的值，在儲存至內容之前會先轉換為此列舉的成員。

如需詳細資訊，請參閱 [SHAPE 概觀](/zh-TW/build/console-features/audio/overviews/shape-overview)的 [XMA](/zh-TW/build/console-features/audio/overviews/shape-overview#ID4EYD) 一節。

<a id="requirementsSection" />

## 需求

**標頭：** shapexmacontext.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[ShapeXmaContext](/zh-TW/reference/audio/shapexmacontext/shapexmacontext_members)


## Related topics

- [SHAPE_XMA_SAMPLE_RATE](/reference/audio/shapexmacontext/enums/shape_xma_sample_rate.md)
- [SetShapeXmaSampleRate(SHAPE_XMA_CONTEXT*, SHAPE_XMA_SAMPLE_RATE)](/reference/audio/shapexmacontext/functions/setshapexmasamplerate.md)
