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

# GetShapeSrcCommandType

> 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](/reference/audio/shapesrccontext/structs/shape_src_context)\*

Pointer to a [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) object.

### Return value

Type: SHAPE\_SRC\_COMMAND\_TYPE

A member of the [SHAPE\_SRC\_COMMAND\_TYPE](/reference/audio/shapesrccontext/enums/shape_src_command_type) 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](/reference/audio/shapesrccontext/enums/shape_src_command_type).

To change the SRC command, use [SetShapeSrcCommand](/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand).

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

## Requirements

**Header:** shapesrccontext.h

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

## See also

[ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

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