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

## Functions

| Function | Description |
| - | - |
| [GetShapePcmAudioBuffer](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmaudiobuffer.md) | Gets the audio buffer of thePCM context. |
| [GetShapePcmBufferFull](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmbufferfull.md) | Gets the buffer-full flag. |
| [GetShapePcmBufferLength](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmbufferlength.md) | Gets the audio buffer's length in samples. |
| [GetShapePcmFormat](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmformat.md) | Gets the PCM format. |
| [GetShapePcmLoopCount](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmloopcount.md) | Gets the loop count. |
| [GetShapePcmLoopEnd](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmloopend.md) | Gets the loop end for non-frame–aligned samples. |
| [GetShapePcmLoopStartOrWritePointer](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmloopstartorwritepointer.md) | Gets the loop start for linear buffers or a write pointer for circular buffers. |
| [GetShapePcmMode](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmmode.md) | Gets the PCM mode. |
| [GetShapePcmReadPointer](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmreadpointer.md) | Gets the read pointer. |
| [SetShapePcmAudioBuffer function](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmaudiobuffer.md) | Sets the PCM audio buffer by using a virtual pointer. |
| [SetShapePcmAudioBuffer](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmaudiobuffer_2.md) | Sets the PCM audio buffer by using a physical address. |
| [SetShapePcmBufferFull](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmbufferfull.md) | Sets the buffer full flag. |
| [SetShapePcmBufferLength](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmbufferlength.md) | Sets the buffer length in samples. |
| [SetShapePcmFormat](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmformat.md) | Sets the PCM format. |
| [SetShapePcmLoopCount](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmloopcount.md) | Sets the loop count. |
| [SetShapePcmLoopEnd](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmloopend.md) | Sets the loop end for non-frame–aligned samples. |
| [SetShapePcmLoopStartOrWritePointer](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmloopstartorwritepointer.md) | Sets the loop start for linear buffers or a write pointer for circular buffers. |
| [SetShapePcmMode](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmmode.md) | Sets the PCM mode. |
| [SetShapePcmReadPointer](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/setshapepcmreadpointer.md) | Sets the read pointer. |

## Structures

| Structure | Description |
| - | - |
| [SHAPE\_PCM\_CONTEXT](https://docs.xbox.com/reference/audio/shapepcmcontext/structs/shape_pcm_context.md) | The PCM context structure. |

## Enumerations

| Enumeration | Description |
| - | - |
| [SHAPE\_PCM\_FORMAT](https://docs.xbox.com/reference/audio/shapepcmcontext/enums/shape_pcm_format.md) | Specifies the enumeration of PCM formats. |
| [SHAPE\_PCM\_MODE](https://docs.xbox.com/reference/audio/shapepcmcontext/enums/shape_pcm_mode.md) | Specifies the enumeration of PCM modes. |


## Related topics

- [ACP overview](https://docs.xbox.com/build/console-features/audio/overviews/acp-overview.md)
- [Audio API reference](https://docs.xbox.com/reference/audio/gc-reference-audio-toc.md)
- [SHAPE_PCM_CONTEXT](https://docs.xbox.com/reference/audio/shapepcmcontext/structs/shape_pcm_context.md)
- [GetShapePcmFormat](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmformat.md)
- [GetShapePcmMode](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmmode.md)
