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

# ShapeSrcSamplingIncrementToPitch

> 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](/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement).

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

## Requirements

**Header:** shapesrccontext.h

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

## See also

[ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

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