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

# SetShapeSrcPitch

> SetShapeSrcPitch

# SetShapeSrcPitch

Définit la hauteur tonale.

## Syntaxe

```cpp theme={null}
HRESULT SetShapeSrcPitch(  
         SHAPE_SRC_CONTEXT* context,  
         float pitch  
)  
```

### Paramètres

*context*   \_Inout\_\
Type : [SHAPE\_SRC\_CONTEXT](/fr-CA/reference/audio/shapesrccontext/structs/shape_src_context)\*

Pointeur vers un objet [SHAPE\_SRC\_CONTEXT](/fr-CA/reference/audio/shapesrccontext/structs/shape_src_context).

*pitch*   \
Type : float

La hauteur tonale.

### Valeur de retour

Type : HRESULT

Code de réussite ou d'erreur HRESULT.

## Remarques

Le bloc du convertisseur de fréquence d'échantillonnage (SRC) lit les échantillons PCM et effectue la conversion de fréquence d'échantillonnage et le décalage de hauteur tonale. Les valeurs de hauteur tonale et de hauteur tonale cible sont comprises dans la plage 0,0625-3,99. Pour obtenir la hauteur tonale actuelle, utilisez [GetShapeSrcPitch](/fr-CA/reference/audio/shapesrccontext/functions/getshapesrcpitch).

Pour plus d'informations sur le SRC, consultez [Bloc du convertisseur de fréquence d'échantillonnage (SRC)](/fr-CA/build/console-features/audio/overviews/shape-overview#ID4EOE) dans la [Vue d'ensemble de SHAPE](/fr-CA/build/console-features/audio/overviews/shape-overview).

## Configuration requise

**En-tête :** shapesrccontext.h

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[SetShapeSrcPitchTarget](/fr-CA/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget)\
[ShapeSrcContext](/fr-CA/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

- [SetShapeSrcPitch](/reference/audio/shapesrccontext/functions/setshapesrcpitch.md)
- [SetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget.md)
- [GetShapeSrcPitch](/reference/audio/shapesrccontext/functions/getshapesrcpitch.md)
- [ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members.md)
