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

# GetShapeSrcSampleCount

> GetShapeSrcSampleCount

# GetShapeSrcSampleCount

サンプル数を取得します。

## 構文

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

### パラメーター

*context*   \_In\_\
型: [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) オブジェクトへのポインター。

### 戻り値

型: UINT32

サンプル数。

## 解説

この関数は、再生開始以降に処理されたオーディオサンプル数を取得します。

サンプル数は [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/structs/shape_src_context.md) オブジェクトの *sampleCount* メンバーに格納されます。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 本体

## 関連項目

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


## Related topics

- [ShapeSrcContext](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [GetShapeSrcSamplePointer](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/functions/getshapesrcsamplepointer.md)
- [SHAPE_SRC_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapesrccontext/structs/shape_src_context.md)
- [GetShapePcmLoopCount](https://docs.xbox.com/ja-jp/reference/audio/shapepcmcontext/functions/getshapepcmloopcount.md)
- [GetShapePcmFormat](https://docs.xbox.com/ja-jp/reference/audio/shapepcmcontext/functions/getshapepcmformat.md)
