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

# GetShapeSrcPitch

> GetShapeSrcPitch

# GetShapeSrcPitch

Gets the pitch.

## Syntax

```cpp theme={null}
float GetShapeSrcPitch(  
         const SHAPE_SRC_CONTEXT* context  
)  
```

### Parameters

*context*   \_In\_\
Type: [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context)\*

Pointer to a [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) object.

### Return value

Type: float

The pitch.

## Remarks

The Sample Rate Convertor (SRC) block reads PCM samples and performs sample-rate conversion and pitch shifting. Pitch and pitch target values are in the range 0.0625-3.99. To change the pitch, use [SetShapeSrcPitch](/reference/audio/shapesrccontext/functions/setshapesrcpitch).

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

[GetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/getshapesrcpitchtarget)\
[ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

- [GetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/getshapesrcpitchtarget.md)
- [SetShapeSrcPitch](/reference/audio/shapesrccontext/functions/setshapesrcpitch.md)
- [ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [SetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget.md)
- [PitchToShapeSrcSamplingIncrement](/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement.md)
