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

# GetShapeSrcTimestamp

> GetShapeSrcTimestamp

# GetShapeSrcTimestamp

获取采样率转换器 (SRC) 上下文的时间戳。

## 语法

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

### 参数

*context*   \
类型：SHAPE\_SRC\_CONTEXT\*

指向 [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) 对象的指针。

### 返回值

类型：UINT32

时间戳。

## 备注

时间戳是一个计数器，指示每个块的处理顺序。在每个流图的开始，时间戳被重置为零。

当处理完成且上下文启用写入时，会在上下文中设置时间戳。

有关流图的更多信息，请参阅[流图](/build/console-features/audio/overviews/acp-overview#ID4EVB)。

## 要求

**标头：** shapesrccontext.h

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

## 另请参阅

[SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context)\
[ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

- [ShapeSrcContext](/zh-CN/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [GetShapeSrcPitch](/zh-CN/reference/audio/shapesrccontext/functions/getshapesrcpitch.md)
- [GetShapeDmaTimestamp](/zh-CN/reference/audio/shapedmacontext/functions/getshapedmatimestamp.md)
- [GetShapeSrcCommandType](/zh-CN/reference/audio/shapesrccontext/functions/getshapesrccommandtype.md)
- [GetShapeSrcPitchTarget](/zh-CN/reference/audio/shapesrccontext/functions/getshapesrcpitchtarget.md)
