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

# ShapeDmaContext

## 函数

| 函数 | 说明 |
| - | - |
| [GetShapeDmaAudioBuffer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmaaudiobuffer.md) | 获取 DMA 音频缓冲区。 |
| [GetShapeDmaBufferFull](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmabufferfull.md) | 获取缓冲区已满标志。 |
| [GetShapeDmaBytesPerFrame](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmabytesperframe.md) | 获取每帧的字节数。 |
| [GetShapeDmaChannel](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmachannel.md) | 获取当前音频声道。 |
| [GetShapeDmaFloatSamples](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmafloatsamples.md) | 获取指示采样为浮点还是 32 位整数的标志。 |
| [GetShapeDmaFramesAvailable](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmaframesavailable.md) | 获取可供读取的帧数。 |
| [GetShapeDmaFramesFree](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmaframesfree.md) | 获取可供写入的帧数。 |
| [GetShapeDmaMixBufferPeakMagnitude](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmamixbufferpeakmagnitude.md) | 获取 DMA 混合缓冲区的峰值幅度。 |
| [GetShapeDmaNumBytes](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmanumbytes.md) | 获取音频缓冲区中的字节数。 |
| [GetShapeDmaNumChannels](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmanumchannels.md) | 获取 DMA 音频缓冲区中的声道数。 |
| [GetShapeDmaNumFrames](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmanumframes.md) | 获取 DMA 帧数。 |
| [GetShapeDmaPeakMagnitude](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmapeakmagnitude.md) | 获取峰值幅度。 |
| [GetShapeDmaReadPointer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmareadpointer.md) | 获取 DMA 读取指针。 |
| [GetShapeDmaReadWriteFull](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmareadwritefull.md) | 获取包含读取指针、写入指针和缓冲区已满标志的 32 位值。 |
| [GetShapeDmaTimestamp](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmatimestamp.md) | 获取 DMA 时间戳。 |
| [GetShapeDmaWritePointer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/getshapedmawritepointer.md) | 获取 DMA 写入指针。 |
| [IncrementShapeDmaReadPointer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/incrementshapedmareadpointer.md) | 递增读取指针。 |
| [IncrementShapeDmaWritePointer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/incrementshapedmawritepointer.md) | 递增写入指针。 |
| [SetShapeDmaAudioBuffer function](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmaaudiobuffer.md) | 设置 DMA 音频缓冲区。 |
| [SetShapeDmaAudioBuffer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmaaudiobuffer_2.md) | 设置 DMA 音频缓冲区。 |
| [SetShapeDmaBufferFull](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmabufferfull.md) | 设置缓冲区已满标志。 |
| [SetShapeDmaChannel](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmachannel.md) | 设置当前声道。 |
| [SetShapeDmaFloatSamples](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmafloatsamples.md) | 设置指示采样为浮点还是 32 位整数的标志。 |
| [SetShapeDmaNumChannels](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmanumchannels.md) | 设置 DMA 音频缓冲区中的声道数。 |
| [SetShapeDmaNumFrames](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmanumframes.md) | 设置 DMA 帧数。 |
| [SetShapeDmaReadPointer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmareadpointer.md) | 设置 DMA 读取指针。 |
| [SetShapeDmaReadWriteFull](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmareadwritefull.md) | 在一次原子操作中设置读取指针、写入指针和缓冲区已满标志。 |
| [SetShapeDmaWritePointer](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/functions/setshapedmawritepointer.md) | 设置 DMA 写入指针。 |

## 结构

| 结构 | 说明 |
| - | - |
| [SHAPE\_DMA\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/structs/shape_dma_context.md) | DMA 上下文结构。 |
| [SHAPE\_DMA\_READ\_WRITE\_FULL](https://docs.xbox.com/zh-CN/reference/audio/shapedmacontext/structs/shape_dma_read_write_full.md) | 用于在一次操作中查询读取指针、写入指针和缓冲区已满标志的结构。 |


## Related topics

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