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

Valid sample rates.

<a id="syntaxSection" />

## Syntax

```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" />

## Constants

| Constant                         | Description |
| -------------------------------- | ----------- |
| 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" />

## Remarks

This enumeration is used in the [GetShapeXmaSampleRate](/reference/audio/shapexmacontext/functions/getshapexmasamplerate) and [SetShapeXmaSampleRate(SHAPE\_XMA\_CONTEXT\*, SHAPE\_XMA\_SAMPLE\_RATE)](/reference/audio/shapexmacontext/functions/setshapexmasamplerate) functions. A value passed to the [SetShapeXmaSampleRate(SHAPE\_XMA\_CONTEXT\*, UINT32)](/reference/audio/shapexmacontext/functions/setshapexmasamplerate_2) function is converted to a member of this enumeration before being stored in the context.

For more information, see the [XMA](/build/console-features/audio/overviews/shape-overview#ID4EYD) section of [Overview of SHAPE](/build/console-features/audio/overviews/shape-overview).

<a id="requirementsSection" />

## Requirements

**Header:** shapexmacontext.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[ShapeXmaContext](/reference/audio/shapexmacontext/shapexmacontext_members)


## Related topics

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