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

# GetShapeSrcCommandType

> GetShapeSrcCommandType

Gets the current SRC command.

## Syntax

```cpp theme={null}
SHAPE_SRC_COMMAND_TYPE GetShapeSrcCommandType(  
         const SHAPE_SRC_CONTEXT* context  
)  
```

### Parameters

*context*   \_In\_\
Type: [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/reference/audio/shapesrccontext/structs/shape_src_context.md)\*

Pointer to a [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/reference/audio/shapesrccontext/structs/shape_src_context.md) object.

### Return value

Type: SHAPE\_SRC\_COMMAND\_TYPE

A member of the [SHAPE\_SRC\_COMMAND\_TYPE](https://docs.xbox.com/reference/audio/shapesrccontext/enums/shape_src_command_type.md) enumeration.

## Remarks

The three SRC commands are as follows.

| Command | Action |
| - | - |
| `SHAPE_SRC_COMMAND_TYPE_START` | Perform normal processing and expect more audio data to follow the current flowgraph. |
| `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE` | Immediately stop processing the source XMA or PCM data. The SRC outputs a zeroed buffer for this frame. |
| `SHAPE_SRC_COMMAND_TYPE_STOP_END` | Stop processing after the current packet. |

For more details, see [SHAPE\_SRC\_COMMAND\_TYPE](https://docs.xbox.com/reference/audio/shapesrccontext/enums/shape_src_command_type.md).

To change the SRC command, use [SetShapeSrcCommand](https://docs.xbox.com/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand.md).

SRC commands can be reported as blocked. For more information, see the [Blocked commands](https://docs.xbox.com/build/console-features/audio/overviews/shape-overview.md#ID4EBGAC) section of [Overview of SHAPE](https://docs.xbox.com/build/console-features/audio/overviews/shape-overview.md).

## Requirements

**Header:** shapesrccontext.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[ShapeSrcContext](https://docs.xbox.com/reference/audio/shapesrccontext/shapesrccontext_members.md)


## Related topics

- [SHAPE_SRC_COMMAND_TYPE](https://docs.xbox.com/reference/audio/shapesrccontext/enums/shape_src_command_type.md)
- [SetShapeSrcCommand](https://docs.xbox.com/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand.md)
- [ShapeSrcContext](https://docs.xbox.com/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [SHAPE_FLOWGRAPH_SRC_COMMAND](https://docs.xbox.com/reference/audio/shapeflowgraph/structs/shape_flowgraph_src_command.md)
- [GetShapePcmFormat](https://docs.xbox.com/reference/audio/shapepcmcontext/functions/getshapepcmformat.md)
