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

# ACP_COMMAND_UPDATE_SRC_CONTEXT

> ACP_COMMAND_UPDATE_SRC_CONTEXT

# ACP\_COMMAND\_UPDATE\_SRC\_CONTEXT

Command for updating a Sample Rate Convertor (SRC) context.

## Syntax

```cpp theme={null}
typedef struct ACP_COMMAND_UPDATE_SRC_CONTEXT {  
    UINT32 contextIndex;  
    UINT32 updateMask;  
    APU_ADDRESS contextData;  
} ACP_COMMAND_UPDATE_SRC_CONTEXT  
```

### Members

*contextIndex*\
Type: UINT32

Index of a context to be updated.

*updateMask*\
Type: UINT32

One or more update flags.

| Flag                                            | Value      |
| ----------------------------------------------- | ---------- |
| SHAPE\_SRC\_UPDATE\_BLOCKS\_TO\_SKIP            | 0x00000001 |
| SHAPE\_SRC\_UPDATE\_SAMPLING\_INCREMENT         | 0x00000002 |
| SHAPE\_SRC\_UPDATE\_SAMPLING\_INCREMENT\_TARGET | 0x00000004 |
| SHAPE\_SRC\_UPDATE\_CMD                         | 0x00000008 |
| SHAPE\_SRC\_UPDATE\_MASK                        | 0x0000000f |

*contextData*\
Type: APU\_ADDRESS

Physical address of the context data to be updated. Refer to the [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) structure.

## Remarks

This structure is used by the `ACP_COMMAND_TYPE_UPDATE_SRC_CONTEXT` command. Use the command to update only a small number of contexts per audio frame; updating a large number of contexts is not efficient. See the [Rendering audio section of Overview of ACP](/build/console-features/audio/overviews/acp-overview#ID4E6C) for more detail.

## Requirements

**Header:** acphal.h

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

## Conceptual documentation

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

## See also

[SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context)\
[ACP\_COMMAND\_TYPE](/reference/audio/acphal/enums/acp_command_type)\
[SubmitCommand](/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_submitcommand)\
[AcpHal](/reference/audio/acphal/acphal_members)


## Related topics

- [ACP overview](/build/console-features/audio/overviews/acp-overview.md)
- [ACP_COMMAND_TYPE](/reference/audio/acphal/enums/acp_command_type.md)
- [ACP_COMMAND_LOAD_SHAPE_FLOWGRAPH](/reference/audio/acphal/structs/acp_command_load_shape_flowgraph.md)
- [AcpHal](/reference/audio/acphal/acphal_members.md)
- [ACP_COMMAND_UPDATE_SRC_CONTEXT_ENTRY](/reference/audio/acphal/structs/acp_command_update_src_context_entry.md)
