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

# ShapeSrcSamplingIncrementToPitch

> ShapeSrcSamplingIncrementToPitch

# ShapeSrcSamplingIncrementToPitch

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

## 語法

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

### 參數

*val*   \
類型：UINT32

取樣增量。

### 傳回值

類型：float

音高。

## 備註

音高值的範圍為 0.0625-3.99。(不過，不會檢查 *val* 參數以確保傳回值在此範圍內。)

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

如需 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

- [ShapeSrcSamplingIncrementToPitch](/reference/audio/shapesrccontext/functions/shapesrcsamplingincrementtopitch.md)
- [PitchToShapeSrcSamplingIncrement](/reference/audio/shapesrccontext/functions/pitchtoshapesrcsamplingincrement.md)
