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

> ACP_COMMAND_UPDATE_SRC_CONTEXT_ENTRY

# ACP\_COMMAND\_UPDATE\_SRC\_CONTEXT\_ENTRY

Entry for updating `SHAPE_SRC_CONTEXT`.

## Syntax

```cpp theme={null}
typedef struct ACP_COMMAND_UPDATE_SRC_CONTEXT_ENTRY {  
    UINT32 contextIndex;  
    UINT32 samplingIncrementTarget;  
} ACP_COMMAND_UPDATE_SRC_CONTEXT_ENTRY  
```

### Members

*contextIndex*\
Type: UINT32

Index in the range of 0 to `ACP_MAX_NUM_SRC_CONTEXTS`.

*samplingIncrementTarget*\
Type: UINT32

Replaces the existing value of `SHAPE_SRC_CONTEXT::samplingIncrement`.

## Remarks

This structure is used by the `ACP_COMMAND_UPDATE_CONTEXTS` and `ACP_COMMAND_UPDATE_ALL_CONTEXTS` commands to update a single Sample Rate Convertor (SRC) context. 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.

This structure also includes the following inline method:

```cpp theme={null}
inline void SetPitchTarget(float pitchTarget) // pitchTarget is in the range SHAPE_SRC_MIN_PITCH to SHAPE_SRC_MAX_PITCH.
{
    samplingIncrementTarget = PitchToShapeSrcSamplingIncrement(pitchTarget);
}  
```

## Requirements

**Header:** acphal.h

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

## See also

[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)
