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

# GetShapeDmaTimestamp

> GetShapeDmaTimestamp

# GetShapeDmaTimestamp

获取直接内存访问 (DMA) 时间戳。

## Syntax

```cpp theme={null}
UINT32 GetShapeDmaTimestamp(  
         const SHAPE_DMA_CONTEXT* context  
)  
```

### Parameters

*context*   \_In\_\
Type: [SHAPE\_DMA\_CONTEXT\*](/reference/audio/shapedmacontext/structs/shape_dma_context)

指向 [SHAPE\_DMA\_CONTEXT](/reference/audio/shapedmacontext/structs/shape_dma_context) 结构的指针。

### Return value

Type: UINT32

DMA 时间戳。

## Remarks

时间戳是一个计数器,在每个流程图开始时重置为零。它指示每个块的处理顺序。当处理完成且上下文可写时,会在上下文中设置该时间戳。

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

## Requirements

**头文件:** shapedmacontext.h

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

## See also

[SHAPE\_DMA\_CONTEXT](/reference/audio/shapedmacontext/structs/shape_dma_context)\
[ShapeDmaContext](/reference/audio/shapedmacontext/shapedmacontext_members)


## Related topics

- [ShapeDmaContext](/zh-CN/reference/audio/shapedmacontext/shapedmacontext_members.md)
- [GetShapeDmaChannel](/zh-CN/reference/audio/shapedmacontext/functions/getshapedmachannel.md)
- [GetShapeSrcTimestamp](/zh-CN/reference/audio/shapesrccontext/functions/getshapesrctimestamp.md)
- [GetShapeDmaFloatSamples](/zh-CN/reference/audio/shapedmacontext/functions/getshapedmafloatsamples.md)
- [GetShapeDmaFramesAvailable](/zh-CN/reference/audio/shapedmacontext/functions/getshapedmaframesavailable.md)
