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

# GetShapeSrcSamplePointer

> GetShapeSrcSamplePointer

Gets the current sample pointer.

## Syntax

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

### Parameters

*context*   \_In\_\
Type: [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/reference/audio/shapesrccontext/structs/shape_src_context.md)\*

Pointer to a [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/reference/audio/shapesrccontext/structs/shape_src_context.md) object.

### Return value

Type: UINT32

The sample pointer.

## Remarks

This function returns a pointer to the current PCM input sample.

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

## Requirements

**Header:** shapesrccontext.h

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

## See also

[ShapeSrcContext](https://docs.xbox.com/reference/audio/shapesrccontext/shapesrccontext_members.md)


## Related topics

- [ShapeSrcContext](https://docs.xbox.com/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [GetShapeSrcSampleCount](https://docs.xbox.com/reference/audio/shapesrccontext/functions/getshapesrcsamplecount.md)
- [SHAPE_SRC_CONTEXT](https://docs.xbox.com/reference/audio/shapesrccontext/structs/shape_src_context.md)
- [GetShapePcmLoopStartOrWritePointer](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmloopstartorwritepointer.md)
- [GetShapePcmFormat](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmformat.md)
