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

# ShapeSrcContext

> ShapeSrcContext

# ShapeSrcContext

ShapeSrcContext API

## 函数

| 函数                                                                                                                  | 说明                       |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| [GetShapeSrcCommandType](/reference/audio/shapesrccontext/functions/getshapesrccommandtype)                         | 获取当前的 SRC 命令。            |
| [GetShapeSrcInternalSaturate](/reference/audio/shapesrccontext/functions/getshapesrcinternalsaturate)               | 获取内部饱和标志。                |
| [GetShapeSrcMixBufferPeakMagnitude0](/reference/audio/shapesrccontext/functions/getshapesrcmixbufferpeakmagnitude0) | 获取左通道或单声道通道输出混音缓冲区的峰值幅度。 |
| [GetShapeSrcMixBufferPeakMagnitude1](/reference/audio/shapesrccontext/functions/getshapesrcmixbufferpeakmagnitude1) | 获取右通道或第二通道输出混音缓冲区的峰值幅度。  |
| [GetShapeSrcPeakMagnitude0](/reference/audio/shapesrccontext/functions/getshapesrcpeakmagnitude0)                   | 获取左通道的峰值幅度。              |
| [GetShapeSrcPeakMagnitude1](/reference/audio/shapesrccontext/functions/getshapesrcpeakmagnitude1)                   | 获取右通道的峰值幅度。              |
| [GetShapeSrcPitch](/reference/audio/shapesrccontext/functions/getshapesrcpitch)                                     | 获取音调。                    |
| [GetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/getshapesrcpitchtarget)                         | 获取目标音调。                  |
| [GetShapeSrcSampleCount](/reference/audio/shapesrccontext/functions/getshapesrcsamplecount)                         | 获取采样计数。                  |
| [GetShapeSrcSamplePointer](/reference/audio/shapesrccontext/functions/getshapesrcsamplepointer)                     | 获取当前采样指针。                |
| [GetShapeSrcTimestamp](/reference/audio/shapesrccontext/functions/getshapesrctimestamp)                             | 获取 SRC 上下文的时间戳。          |
| [GetShapeSrcXmaBlocksToSkip](/reference/audio/shapesrccontext/functions/getshapesrcxmablockstoskip)                 | 获取启动时要跳过的 XMA 块数。        |
| [PitchToShapeSrcSamplingIncrement](/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement)     | 将音调值转换为 SRC 采样增量。        |
| [SetShapeSrcCommand](/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand)                 | 设置 SRC 命令。               |
| [SetShapeSrcPitch](/reference/audio/shapesrccontext/functions/setshapesrcpitch)                                     | 设置音调。                    |
| [SetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget)                         | 设置目标音调。                  |
| [SetShapeSrcXmaBlocksToSkip](/reference/audio/shapesrccontext/functions/setshapesrcxmablockstoskip)                 | 设置启动时要跳过的 XMA 块数。        |
| [ShapeSrcSamplingIncrementToPitch](/reference/audio/shapesrccontext/functions/shapesrcsamplingincrementtopitch)     | 将 SRC 采样增量转换为音调值。        |

## 结构

| 结构                                                                                | 说明                |
| --------------------------------------------------------------------------------- | ----------------- |
| [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) | 采样率转换器 (SRC) 上下文。 |

## 枚举

| 枚举                                                                                         | 说明      |
| ------------------------------------------------------------------------------------------ | ------- |
| [SHAPE\_SRC\_COMMAND\_TYPE](/reference/audio/shapesrccontext/enums/shape_src_command_type) | SRC 命令。 |


## Related topics

- [SHAPE_SRC_CONTEXT](/zh-CN/reference/audio/shapesrccontext/structs/shape_src_context.md)
- [GetShapeSrcPitch](/zh-CN/reference/audio/shapesrccontext/functions/getshapesrcpitch.md)
- [GetShapeSrcTimestamp](/zh-CN/reference/audio/shapesrccontext/functions/getshapesrctimestamp.md)
- [SetShapeSrcCommand](/zh-CN/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand.md)
- [SetShapeSrcPitch](/zh-CN/reference/audio/shapesrccontext/functions/setshapesrcpitch.md)
