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

> SHAPE_FLOWGRAPH_SRC_COMMAND

# SHAPE\_FLOWGRAPH\_SRC\_COMMAND

Indicates that a sample rate conversion (SRC) pass is needed.

## Syntax

```cpp theme={null}
typedef struct SHAPE_FLOWGRAPH_SRC_COMMAND {  
    UINT64 command : 5;
    UINT64 queued : 1;
    UINT64 disabled : 1;
    UINT64 error : 1;
    UINT64  : 5;
    UINT64 contextId : 12;
    UINT64 mixBuffer0 : 13;
    UINT64 mixBuffer1 : 13;
    UINT64  : 13;
} SHAPE_FLOWGRAPH_SRC_COMMAND  
```

### Members

`command`\
Type: UINT64

The SHAPE\_FLOWGRAPH\_COMMAND\_TYPE\_SRC command from [SHAPE\_FLOWGRAPH\_COMMAND\_TYPE](/reference/audio/shapeflowgraph/enums/shape_flowgraph_command_type).

`queued`\
Type: UINT64

Internal process flag: 1 == inserted into internal command queue, 0 == still waiting.

`disabled`\
Type: UINT64

Flag to disable the conversion: 1 == disabled (don't process), 0 == enabled (process normally).

`error`\
Type: UINT64

Command is invalid by the Audio Control Processor (ACP).

`reserved0`\
Type: UINT64

Reserved.

`contextId`\
Type: UINT64

Context ID.

`mixBuffer0`\
Type: UINT64

Output mix buffer for channel 0 (normally left / mono).

`mixBuffer1`\
Type: UINT64

Output mix buffer for channel 1 (normally right).

`reserved1`\
Type: UINT64

Reserved.

## Remarks

SRC operates in one of two modes.

* **MONO** mode data is read from system memory on a sample-by-sample basis and written (after SRC) to a mix buffer.

* **STEREO** mode data is interpreted as interleaved (left/right) stereo PCM data; each channel is output to a separate mix buffer. This allows for greatest performance with a minimum of memory re-reads.

The *SRC* command is dispatched to the SRC hardware block for execution. The input data for the SRC block is specified in the SRC or XBOX Media Audio (XMA) contexts and always resides in system memory. The output of the SRC always goes to one or more mix buffers. Each command corresponds to the output processing of one channel of 128 samples audio frame at 48 kHz. The number of input samples consumed depends on the SRC ratio.

## Requirements

**Header:** shapeflowgraph.h

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

## See also

[ACP](/build/console-features/audio/overviews/acp-overview)

[SHAPE Overview](/build/console-features/audio/overviews/shape-overview)

[shapeflowgraph](/reference/audio/shapeflowgraph/shapeflowgraph_members)


## Related topics

- [SHAPE_FLOWGRAPH_COMMAND](/reference/audio/shapeflowgraph/structs/shape_flowgraph_command.md)
- [ShapeFlowGraph](/reference/audio/shapeflowgraph/shapeflowgraph_members.md)
- [SHAPE_FLOWGRAPH_COMMAND_TYPE](/reference/audio/shapeflowgraph/enums/shape_flowgraph_command_type.md)
- [SetShapeSrcCommand function](/reference/audio/shapeflowgraph/functions/shapeflowgraph_setshapesrccommand.md)
- [SetShapeSrcCommand](/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand.md)
