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

Define o pitch.

## Sintaxe

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

### Parâmetros

*context*   \_Inout\_\
Tipo: [SHAPE\_SRC\_CONTEXT](/pt-BR/reference/audio/shapesrccontext/structs/shape_src_context)\*

Ponteiro para um objeto [SHAPE\_SRC\_CONTEXT](/pt-BR/reference/audio/shapesrccontext/structs/shape_src_context).

*pitch*   \
Tipo: float

O pitch.

### Valor retornado

Tipo: HRESULT

Código de sucesso ou de erro HRESULT.

## Comentários

O bloco Sample Rate Convertor (SRC) lê amostras PCM e executa a conversão da taxa de amostragem e o deslocamento de pitch. Os valores de pitch e de pitch de destino estão no intervalo de 0,0625 a 3,99. Para obter o pitch atual, use [GetShapeSrcPitch](/pt-BR/reference/audio/shapesrccontext/functions/getshapesrcpitch).

Para obter mais informações sobre o SRC, consulte [Bloco Sample Rate Convertor (SRC)](/pt-BR/build/console-features/audio/overviews/shape-overview#ID4EOE) em [Visão geral do SHAPE](/pt-BR/build/console-features/audio/overviews/shape-overview).

## Requisitos

**Cabeçalho:** shapesrccontext.h

**Plataformas com suporte:** consoles da família XBOX One e consoles XBOX Series

## Confira também

[SetShapeSrcPitchTarget](/pt-BR/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget)\
[ShapeSrcContext](/pt-BR/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

- [SetShapeSrcPitchTarget](/pt-BR/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget.md)
- [GetShapeSrcPitch](/pt-BR/reference/audio/shapesrccontext/functions/getshapesrcpitch.md)
- [ShapeSrcContext](/pt-BR/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [GetShapeSrcPitchTarget](/pt-BR/reference/audio/shapesrccontext/functions/getshapesrcpitchtarget.md)
- [PitchToShapeSrcSamplingIncrement](/pt-BR/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement.md)
