> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ShapeSrcSamplingIncrementToPitch

> ShapeSrcSamplingIncrementToPitch

Converts a Sample Rate Convertor (SRC) sampling increment to a pitch value.

## Syntax

```cpp theme={null}
float ShapeSrcSamplingIncrementToPitch(  
         UINT32 val  
)  
```

### Parameters

*val*   \
Type: UINT32

The sampling increment.

### Return value

Type: float

The pitch.

## Remarks

Pitch values are in the range 0.0625-3.99. (However, the *val* parameter is not checked to ensure that the return value is in the range.)

To convert a pitch value to a sampling increment, use [PitchToShapeSrcSamplingIncrement](https://docs.xbox.com/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement.md).

For more information about the SRC, see [Sample Rate Convertor (SRC) block](https://docs.xbox.com/build/console-features/audio/overviews/shape-overview.md#ID4EOE) in [Overview of SHAPE](https://docs.xbox.com/build/console-features/audio/overviews/shape-overview.md).

## Requirements

**Header:** shapesrccontext.h

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

## See also

[ShapeSrcContext](https://docs.xbox.com/reference/audio/shapesrccontext/shapesrccontext_members.md)


## Related topics

- [PitchToShapeSrcSamplingIncrement](https://docs.xbox.com/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement.md)
- [ShapeSrcContext](https://docs.xbox.com/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [SHAPE_SRC_CONTEXT](https://docs.xbox.com/reference/audio/shapesrccontext/structs/shape_src_context.md)
- [ACP_COMMAND_UPDATE_SRC_CONTEXT](https://docs.xbox.com/reference/audio/acphal/structs/acp_command_update_src_context.md)
- [ACP_COMMAND_UPDATE_SRC_CONTEXT_ENTRY](https://docs.xbox.com/reference/audio/acphal/structs/acp_command_update_src_context_entry.md)
