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

# GetShapeSrcSampleCount

> GetShapeSrcSampleCount

# GetShapeSrcSampleCount

取得樣本計數。

## 語法

```cpp theme={null}
UINT32 GetShapeSrcSampleCount(  
         const SHAPE_SRC_CONTEXT* context  
)  
```

### 參數

*context*   \_In\_\
類型：[SHAPE\_SRC\_CONTEXT](/zh-TW/reference/audio/shapesrccontext/structs/shape_src_context)\*

指向 [SHAPE\_SRC\_CONTEXT](/zh-TW/reference/audio/shapesrccontext/structs/shape_src_context) 物件的指標。

### 傳回值

類型：UINT32

樣本計數。

## 備註

此函式會取得自播放開始以來已處理的音訊樣本計數。

計數儲存在 [SHAPE\_SRC\_CONTEXT](/zh-TW/reference/audio/shapesrccontext/structs/shape_src_context) 物件的 *sampleCount* 成員中。如需 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

- [GetShapeSrcSampleCount](/reference/audio/shapesrccontext/functions/getshapesrcsamplecount.md)
- [ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members.md)
