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

# ShapePcmContext

> ShapePcmContext

# ShapePcmContext

ShapePcmContext API

## 函数

| 函数 | 说明 |
| - | - |
| [GetShapePcmAudioBuffer](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmaudiobuffer.md) | 获取 PCM 上下文的音频缓冲区。 |
| [GetShapePcmBufferFull](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmbufferfull.md) | 获取缓冲区已满标志。 |
| [GetShapePcmBufferLength](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmbufferlength.md) | 获取音频缓冲区以样本为单位的长度。 |
| [GetShapePcmFormat](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmformat.md) | 获取 PCM 格式。 |
| [GetShapePcmLoopCount](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmloopcount.md) | 获取循环计数。 |
| [GetShapePcmLoopEnd](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmloopend.md) | 获取非帧对齐样本的循环结束位置。 |
| [GetShapePcmLoopStartOrWritePointer](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmloopstartorwritepointer.md) | 获取线性缓冲区的循环起点，或环形缓冲区的写入指针。 |
| [GetShapePcmMode](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmmode.md) | 获取 PCM 模式。 |
| [GetShapePcmReadPointer](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmreadpointer.md) | 获取读取指针。 |
| [SetShapePcmAudioBuffer 函数](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmaudiobuffer.md) | 使用虚拟指针设置 PCM 音频缓冲区。 |
| [SetShapePcmAudioBuffer](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmaudiobuffer_2.md) | 使用物理地址设置 PCM 音频缓冲区。 |
| [SetShapePcmBufferFull](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmbufferfull.md) | 设置缓冲区已满标志。 |
| [SetShapePcmBufferLength](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmbufferlength.md) | 以样本为单位设置缓冲区长度。 |
| [SetShapePcmFormat](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmformat.md) | 设置 PCM 格式。 |
| [SetShapePcmLoopCount](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmloopcount.md) | 设置循环计数。 |
| [SetShapePcmLoopEnd](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmloopend.md) | 设置非帧对齐样本的循环结束位置。 |
| [SetShapePcmLoopStartOrWritePointer](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmloopstartorwritepointer.md) | 设置线性缓冲区的循环起点，或环形缓冲区的写入指针。 |
| [SetShapePcmMode](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmmode.md) | 设置 PCM 模式。 |
| [SetShapePcmReadPointer](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmreadpointer.md) | 设置读取指针。 |

## 结构体

| 结构体 | 说明 |
| - | - |
| [SHAPE\_PCM\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/structs/shape_pcm_context.md) | PCM 上下文结构体。 |

## 枚举

| 枚举 | 说明 |
| - | - |
| [SHAPE\_PCM\_FORMAT](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/enums/shape_pcm_format.md) | 指定 PCM 格式的枚举。 |
| [SHAPE\_PCM\_MODE](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/enums/shape_pcm_mode.md) | 指定 PCM 模式的枚举。 |


## Related topics

- [ACP 概述](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/acp-overview.md)
- [音频 API 参考](https://docs.xbox.com/zh-CN/reference/audio/gc-reference-audio-toc.md)
- [SHAPE_PCM_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/structs/shape_pcm_context.md)
- [GetShapePcmFormat](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmformat.md)
- [GetShapePcmMode](https://docs.xbox.com/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmmode.md)
