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

# GetShapeSrcSamplePointer

获取当前样本指针。

## 语法

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

### 参数

*context*   \_In\_\
类型：[SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/structs/shape_src_context.md)\*

指向 [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/structs/shape_src_context.md) 对象的指针。

### 返回值

类型：UINT32

样本指针。

## 备注

此函数返回指向当前 PCM 输入样本的指针。

该指针存储在 [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapesrccontext/structs/shape_src_context.md) 对象的 *samplePointer* 成员中。有关 SRC 的更多信息，请参阅 [SHAPE 概述](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/shape-overview.md)中的[采样率转换器 (SRC) 块](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/shape-overview.md#ID4EOE)。

## 要求

**标头：** shapesrccontext.h

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

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


## Related topics

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