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

# SetShapeSrcPitchTarget

> SetShapeSrcPitchTarget

# SetShapeSrcPitchTarget

Establece el tono de destino.

## Sintaxis

```cpp theme={null}
HRESULT SetShapeSrcPitchTarget(  
         SHAPE_SRC_CONTEXT* context,  
         float pitchTarget  
)  
```

### Parámetros

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

Puntero a un objeto [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context).

*pitchTarget*   \
Tipo: float

El tono de destino.

### Valor devuelto

Tipo: HRESULT

Código HRESULT de éxito o de error.

## Comentarios

El bloque del convertidor de frecuencia de muestreo (SRC) lee muestras PCM y realiza la conversión de frecuencia de muestreo y el cambio de tono. Los valores de tono de destino y de tono están en el intervalo 0,0625-3,99. Para obtener el tono de destino actual, use [GetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/getshapesrcpitchtarget).

Para obtener más información sobre el SRC, consulte [Bloque del convertidor de frecuencia de muestreo (SRC)](/build/console-features/audio/overviews/shape-overview#ID4EOE) en [Información general de SHAPE](/build/console-features/audio/overviews/shape-overview).

## Requisitos

**Encabezado:** shapesrccontext.h

**Plataformas compatibles:** consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[SetShapeSrcPitch](/reference/audio/shapesrccontext/functions/setshapesrcpitch)\
[ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

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