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

# GetShapeDmaTimestamp

> GetShapeDmaTimestamp

# GetShapeDmaTimestamp

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

## Syntax

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

### Parameters

*context*   \_In\_\
Type: [SHAPE\_DMA\_CONTEXT\*](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/structs/shape_dma_context.md)

指向 [SHAPE\_DMA\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/structs/shape_dma_context.md) 结构的指针。

### Return value

Type: UINT32

DMA 时间戳。

## Remarks

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

有关流程图的更多信息,请参阅[流程图](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/acp-overview.md#ID4EVB)。

## Requirements

**头文件:** shapedmacontext.h

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

## See also

[SHAPE\_DMA\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/structs/shape_dma_context.md)\
[ShapeDmaContext](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/shapedmacontext_members.md)


## Related topics

- [ShapeDmaContext](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/shapedmacontext_members.md)
- [GetShapeDmaChannel](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmachannel.md)
- [GetShapeDmaAudioBuffer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmaaudiobuffer.md)
- [GetShapeDmaBufferFull](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmabufferfull.md)
- [GetShapeDmaFloatSamples](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmafloatsamples.md)
