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

# GetShapeXmaNumSubframesToDecode

> GetShapeXmaNumSubframesToDecode

Gets the number of subframes to decode per pass.

## Syntax

```cpp theme={null}
UINT32 GetShapeXmaNumSubframesToDecode(  
         const SHAPE_XMA_CONTEXT* context  
)  
```

### Parameters

*context*   \_In\_\
Type: [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/reference/audio/shapexmacontext/structs/shape_xma_context.md)\*

Pointer to a [SHAPE\_XMA\_CONTEXT](https://docs.xbox.com/reference/audio/shapexmacontext/structs/shape_xma_context.md) object.

### Return value

Type: UINT32

Number of subframes to decode. Valid values are 1, 2, 4, and 8.

## Remarks

To set the number of subframes to decode during each pass, use [SetShapeXmaNumSubframesToDecode](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmanumsubframestodecode.md).

To get the current number of subframes to skip, use [GetShapeXmaNumSubframesToSkip](https://docs.xbox.com/reference/audio/shapexmacontext/functions/getshapexmanumsubframestoskip.md).

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

## Requirements

**Header:** shapexmacontext.h

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

## See also

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


## Related topics

- [SetShapeXmaNumSubframesToDecode](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmanumsubframestodecode.md)
- [GetShapeXmaNumSubframesToSkip](https://docs.xbox.com/reference/audio/shapexmacontext/functions/getshapexmanumsubframestoskip.md)
- [ShapeXmaContext](https://docs.xbox.com/reference/audio/shapexmacontext/shapexmacontext_members.md)
- [SetShapeXmaNumSubframesToSkip](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmanumsubframestoskip.md)
- [GetShapeXmaLoopSubframeEnd](https://docs.xbox.com/reference/audio/shapexmacontext/functions/getshapexmaloopsubframeend.md)
