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

# ShapePcmContext

> ShapePcmContext

# ShapePcmContext

ShapePcmContext API

## 函数

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

## 结构体

| 结构体                                                                               | 说明          |
| --------------------------------------------------------------------------------- | ----------- |
| [SHAPE\_PCM\_CONTEXT](/reference/audio/shapepcmcontext/structs/shape_pcm_context) | PCM 上下文结构体。 |

## 枚举

| 枚举                                                                            | 说明            |
| ----------------------------------------------------------------------------- | ------------- |
| [SHAPE\_PCM\_FORMAT](/reference/audio/shapepcmcontext/enums/shape_pcm_format) | 指定 PCM 格式的枚举。 |
| [SHAPE\_PCM\_MODE](/reference/audio/shapepcmcontext/enums/shape_pcm_mode)     | 指定 PCM 模式的枚举。 |


## Related topics

- [ACP 概述](/zh-CN/build/console-features/audio/overviews/acp-overview.md)
- [SHAPE_PCM_CONTEXT](/zh-CN/reference/audio/shapepcmcontext/structs/shape_pcm_context.md)
- [SHAPE_PCM_FORMAT](/zh-CN/reference/audio/shapepcmcontext/enums/shape_pcm_format.md)
- [SHAPE_PCM_MODE](/zh-CN/reference/audio/shapepcmcontext/enums/shape_pcm_mode.md)
- [GetShapePcmFormat](/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmformat.md)
