> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetShapeSrcPitch

> SetShapeSrcPitch

# SetShapeSrcPitch

ピッチを設定します。

## 構文

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

### パラメーター

*context*   \_Inout\_\
型: [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/structs/shape_src_context.md)\*

[SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/structs/shape_src_context.md) オブジェクトへのポインター。

*pitch*   \
型: float

ピッチ。

### 戻り値

型: HRESULT

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

## 解説

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

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

## 要件

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

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

## 関連項目

[SetShapeSrcPitchTarget](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget.md)\
[ShapeSrcContext](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/shapesrccontext_members.md)


## Related topics

- [SetShapeSrcPitchTarget](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/functions/setshapesrcpitchtarget.md)
- [GetShapeSrcPitch](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/functions/getshapesrcpitch.md)
- [ShapeSrcContext](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [GetShapeSrcPitchTarget](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/functions/getshapesrcpitchtarget.md)
- [PitchToShapeSrcSamplingIncrement](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement.md)
