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

Gets the Direct Memory Access (DMA) time stamp.

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

Pointer to a [SHAPE\_DMA\_CONTEXT](/reference/audio/shapedmacontext/structs/shape_dma_context) structure.

### Return value

Type: UINT32

The DMA time stamp.

## Remarks

The time stamp is a counter that is reset to zero at the beginning of each flowgraph. It indicates the order of processing of each block. The time stamp is set on a context when processing is complete and the context is write-enabled.

For more information on flowgraphs, see [Flowgraphs](/build/console-features/audio/overviews/acp-overview#ID4EVB).

## Requirements

**Header:** shapedmacontext.h

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

## See also

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


## Related topics

- [ShapeDmaContext](/reference/audio/shapedmacontext/shapedmacontext_members.md)
- [GetShapeDmaChannel](/reference/audio/shapedmacontext/functions/getshapedmachannel.md)
- [GetShapeSrcTimestamp](/reference/audio/shapesrccontext/functions/getshapesrctimestamp.md)
- [GetShapeDmaNumChannels](/reference/audio/shapedmacontext/functions/getshapedmanumchannels.md)
- [GetShapeDmaNumFrames](/reference/audio/shapedmacontext/functions/getshapedmanumframes.md)
