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

# PitchToShapeSrcSamplingIncrement

> PitchToShapeSrcSamplingIncrement

# PitchToShapeSrcSamplingIncrement

將音高值轉換為取樣率轉換器 (SRC) 取樣增量。

## 語法

```cpp theme={null}
UINT32 PitchToShapeSrcSamplingIncrement(  
         float val  
)  
```

### 參數

*val*   \
類型：float

音高。

### 傳回值

類型：UINT32

取樣增量。

## 備註

音高值的範圍為 0.0625-3.99。(不過，超出此範圍的值不會傳回錯誤。)

若要將取樣增量轉換為音高值，請使用 [ShapeSrcSamplingIncrementToPitch](/zh-TW/reference/audio/shapesrccontext/functions/shapesrcsamplingincrementtopitch)。

如需 SRC 的詳細資訊，請參閱 [SHAPE 概觀](/zh-TW/build/console-features/audio/overviews/shape-overview)中的[取樣率轉換器 (SRC) 區塊](/zh-TW/build/console-features/audio/overviews/shape-overview#ID4EOE)。

## 需求

**標頭：** shapesrccontext.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[ShapeSrcContext](/zh-TW/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

- [PitchToShapeSrcSamplingIncrement](/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement.md)
- [ShapeSrcSamplingIncrementToPitch](/reference/audio/shapesrccontext/functions/shapesrcsamplingincrementtopitch.md)
- [ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [SHAPE_SRC_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context.md)
- [ACP_COMMAND_UPDATE_SRC_CONTEXT](/reference/audio/acphal/structs/acp_command_update_src_context.md)
