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

# GetShapeSrcSampleCount

> GetShapeSrcSampleCount

# GetShapeSrcSampleCount

Gets the sample count.

## Syntax

```cpp theme={null}
UINT32 GetShapeSrcSampleCount(  
         const SHAPE_SRC_CONTEXT* context  
)  
```

### Parameters

*context*   \_In\_\
Type: [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context)\*

Pointer to a [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) object.

### Return value

Type: UINT32

The sample count.

## Remarks

This function gets the count of audio samples processed since playback started.

The count is stored in the *sampleCount* member of the [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) object. For more information about the SRC, see [Sample Rate Convertor (SRC) block](/build/console-features/audio/overviews/shape-overview#ID4EOE) in [Overview of SHAPE](/build/console-features/audio/overviews/shape-overview).

## Requirements

**Header:** shapesrccontext.h

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

## See also

[ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

- [ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [GetShapeSrcSamplePointer](/reference/audio/shapesrccontext/functions/getshapesrcsamplepointer.md)
- [GetShapePcmFormat](/reference/audio/shapepcmcontext/functions/getshapepcmformat.md)
- [SHAPE_SRC_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context.md)
- [GetShapePcmLoopCount](/reference/audio/shapepcmcontext/functions/getshapepcmloopcount.md)
