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

# ShapeDmaContext

> ShapeDmaContext

## Functions

| Function | Description |
| - | - |
| [GetShapeDmaAudioBuffer](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmaaudiobuffer.md) | Gets the DMA audio buffer. |
| [GetShapeDmaBufferFull](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmabufferfull.md) | Gets the buffer-full flag. |
| [GetShapeDmaBytesPerFrame](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmabytesperframe.md) | Gets the number of bytes per frame. |
| [GetShapeDmaChannel](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmachannel.md) | Gets the current audio channel. |
| [GetShapeDmaFloatSamples](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmafloatsamples.md) | Gets the flag that indicates whether samples are floating point or 32-bit integer. |
| [GetShapeDmaFramesAvailable](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmaframesavailable.md) | Gets the number of frames available to read. |
| [GetShapeDmaFramesFree](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmaframesfree.md) | Gets the number of frames available to write to. |
| [GetShapeDmaMixBufferPeakMagnitude](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmamixbufferpeakmagnitude.md) | Gets the peak magnitude of the DMA mix buffer. |
| [GetShapeDmaNumBytes](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmanumbytes.md) | Gets the number of bytes in the audio buffer. |
| [GetShapeDmaNumChannels](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmanumchannels.md) | Gets the number of channels in the DMA audio buffer. |
| [GetShapeDmaNumFrames](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmanumframes.md) | Gets the number of DMA frames. |
| [GetShapeDmaPeakMagnitude](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmapeakmagnitude.md) | Gets the peak magnitude. |
| [GetShapeDmaReadPointer](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmareadpointer.md) | Gets the DMA read pointer. |
| [GetShapeDmaReadWriteFull](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmareadwritefull.md) | Gets a 32-bit value that contains the read and write pointers and the buffer-full flag. |
| [GetShapeDmaTimestamp](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmatimestamp.md) | Gets the DMA time stamp. |
| [GetShapeDmaWritePointer](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmawritepointer.md) | Gets the DMA write pointer. |
| [IncrementShapeDmaReadPointer](https://docs.xbox.com/reference/audio/shapedmacontext/functions/incrementshapedmareadpointer.md) | Increments the read pointer. |
| [IncrementShapeDmaWritePointer](https://docs.xbox.com/reference/audio/shapedmacontext/functions/incrementshapedmawritepointer.md) | Increments the write pointer. |
| [SetShapeDmaAudioBuffer function](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmaaudiobuffer.md) | Sets the DMA audio buffer. |
| [SetShapeDmaAudioBuffer](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmaaudiobuffer_2.md) | Sets the DMA audio buffer. |
| [SetShapeDmaBufferFull](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmabufferfull.md) | Sets the buffer-full flag. |
| [SetShapeDmaChannel](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmachannel.md) | Sets the current channel. |
| [SetShapeDmaFloatSamples](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmafloatsamples.md) | Sets the flag that indicates whether samples are floating point or 32-bit integer. |
| [SetShapeDmaNumChannels](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmanumchannels.md) | Sets the number of channels in the DMA audio buffer. |
| [SetShapeDmaNumFrames](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmanumframes.md) | Sets the number of DMA frames. |
| [SetShapeDmaReadPointer](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmareadpointer.md) | Sets the DMA read pointer. |
| [SetShapeDmaReadWriteFull](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmareadwritefull.md) | Sets the read and write pointers and buffer-full flag in a single atomic operation. |
| [SetShapeDmaWritePointer](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmawritepointer.md) | Sets the DMA write pointer. |

## Structures

| Structure | Description |
| - | - |
| [SHAPE\_DMA\_CONTEXT](https://docs.xbox.com/reference/audio/shapedmacontext/structs/shape_dma_context.md) | The DMA context structure. |
| [SHAPE\_DMA\_READ\_WRITE\_FULL](https://docs.xbox.com/reference/audio/shapedmacontext/structs/shape_dma_read_write_full.md) | Structure used to query read and write pointers and buffer-full flag in one operation. |


## Related topics

- [SHAPE_DMA_CONTEXT](https://docs.xbox.com/reference/audio/shapedmacontext/structs/shape_dma_context.md)
- [GetShapeDmaTimestamp](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmatimestamp.md)
- [GetShapeDmaChannel](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmachannel.md)
- [SetShapeDmaChannel](https://docs.xbox.com/reference/audio/shapedmacontext/functions/setshapedmachannel.md)
- [GetShapeDmaFloatSamples](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmafloatsamples.md)
