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

ピッチターゲットを設定します。

## 構文

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

### パラメーター

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

[SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) オブジェクトへのポインター。

*pitchTarget*   \
型: float

ピッチターゲット。

### 戻り値

型: HRESULT

HRESULT の成功またはエラーコード。

## 解説

サンプルレートコンバーター (SRC) ブロックは PCM サンプルを読み取り、サンプルレート変換とピッチシフトを実行します。ピッチターゲットおよびピッチ値は 0.0625〜3.99 の範囲です。現在のピッチターゲットを取得するには、[GetShapeSrcPitchTarget](/reference/audio/shapesrccontext/functions/getshapesrcpitchtarget) を使用します。

SRC の詳細については、[SHAPE の概要](/build/console-features/audio/overviews/shape-overview) の [サンプルレートコンバーター (SRC) ブロック](/build/console-features/audio/overviews/shape-overview#ID4EOE) を参照してください。

## 要件

**ヘッダー:** shapesrccontext.h

**サポート対象プラットフォーム:** XBOX One ファミリー本体および XBOX Series 本体

## 関連項目

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


## Related topics

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