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

# SHAPE_SRC_COMMAND_TYPE

> SHAPE_SRC_COMMAND_TYPE

# SHAPE\_SRC\_COMMAND\_TYPE

Sample Rate Convertor (SRC) commands.

## Syntax

```cpp theme={null}
enum SHAPE_SRC_COMMAND_TYPE    
{  
    SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE,  
    SHAPE_SRC_COMMAND_TYPE_START,  
    SHAPE_SRC_COMMAND_TYPE_STOP_END  
}  
```

## Constants

| Constant                                   | Description                                                                                                                                                                                                 |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SHAPE\_SRC\_COMMAND\_TYPE\_STOP\_IMMEDIATE | The SRC stops sending processed input samples to the mix buffer and outputs zeros. The SRC also stops reading the source data.                                                                              |
| SHAPE\_SRC\_COMMAND\_TYPE\_START           | The SRC reads data from the beginning of the buffer and loops until told to stop. If looping is not set, the SRC attempts to play from the beginning to the end of the buffer, ignoring the loop endpoints. |
| SHAPE\_SRC\_COMMAND\_TYPE\_STOP\_END       | The SRC reads data from the buffer from its current point. Upon reaching the loop point, the SRC continues to play until the end of the buffer.                                                             |

## Remarks

This enumeration is used by the [SetShapeSrcCommand](/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand) and [GetShapeSrcCommandType](/reference/audio/shapesrccontext/functions/getshapesrccommandtype) functions.

If the end of the buffer is reached before the end of the current audio frame, the SRC outputs zeros for the remainder of the frame. The SRC then sets the command field to `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE`.

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

- [SetShapeSrcCommand](/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand.md)
- [GetShapeSrcCommandType](/reference/audio/shapesrccontext/functions/getshapesrccommandtype.md)
- [ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [SHAPE_SRC_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context.md)
- [SHAPE_PCM_FORMAT](/reference/audio/shapepcmcontext/enums/shape_pcm_format.md)
