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

> ACP_COMMAND_UPDATE_CONTEXTS

# ACP\_COMMAND\_UPDATE\_CONTEXTS

Command for updating an array of a single Scalable Hardware Audio Processing Engine (SHAPE) context type.

## Syntax

```cpp theme={null}
typedef struct ACP_COMMAND_UPDATE_CONTEXTS {  
    UINT32 entryCount;  
    APU_ADDRESS entries;  
    UINT32 indexCount;  
    APU_ADDRESS indices;  
} ACP_COMMAND_UPDATE_CONTEXTS  
```

### Members

*entryCount*\
Type: UINT32

Count of entries.

*entries*\
Type: APU\_ADDRESS

Pointer to an array of entries.

*indexCount*\
Type: UINT32

Count of indices.

*indices*\
Type: APU\_ADDRESS

Array of unsigned 16-bit indices into entries.

## Remarks

This structure is used in the following commands:

* ACP\_COMMAND\_TYPE\_UPDATE\_DMA\_READ\_CONTEXTS
* ACP\_COMMAND\_TYPE\_UPDATE\_DMA\_WRITE\_CONTEXTS
* ACP\_COMMAND\_TYPE\_UPDATE\_EQCOMP\_CONTEXT
* ACP\_COMMAND\_TYPE\_UPDATE\_FILTVOL\_CONTEXTS
* ACP\_COMMAND\_TYPE\_UPDATE\_PCM\_CONTEXTS
* ACP\_COMMAND\_TYPE\_UPDATE\_SRC\_CONTEXTS
* ACP\_COMMAND\_TYPE\_UPDATE\_XMA\_CONTEXTS

If updating directly, the *entryCount* and *entries* members are used and the index members are ignored. If updating indirectly, the *indexCount* and *indices* members are used and the entry members are ignored. (See the remarks for [ACP\_COMMAND\_UPDATE\_ALL\_CONTEXTS](/reference/audio/acphal/structs/acp_command_update_all_contexts) for more details.)

To update all contexts, use the [ACP\_COMMAND\_UPDATE\_ALL\_CONTEXTS](/reference/audio/acphal/structs/acp_command_update_all_contexts) structure.

## Requirements

**Header:** acphal.h

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

## See also

[ACP\_COMMAND\_UPDATE\_ALL\_CONTEXTS](/reference/audio/acphal/structs/acp_command_update_all_contexts)\
[SubmitCommand](/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_submitcommand)\
[AcpHal](/reference/audio/acphal/acphal_members)


## Related topics

- [ACP_COMMAND_TYPE](/reference/audio/acphal/enums/acp_command_type.md)
- [ACP_COMMAND_UPDATE_ALL_CONTEXTS](/reference/audio/acphal/structs/acp_command_update_all_contexts.md)
- [ACP_COMMAND_UPDATE_XMA_CONTEXT_ENTRY](/reference/audio/acphal/structs/acp_command_update_xma_context_entry.md)
- [ACP_COMMAND_UPDATE_PCM_CONTEXT_ENTRY](/reference/audio/acphal/structs/acp_command_update_pcm_context_entry.md)
- [ACP_COMMAND_UPDATE_EQCOMP_CONTEXT_ENTRY](/reference/audio/acphal/structs/acp_command_update_eqcomp_context_entry.md)
