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

# GetXmaSampleRate

> GetXmaSampleRate

# GetXmaSampleRate

この関数は、汎用サンプル レートに対応する正しい XBOX Media Audio (XMA) サンプル レート (24、32、44.1、または 48 KHz) を取得します。

## 構文

```cpp theme={null}
DWORD GetXmaSampleRate(  
         DWORD dwGeneralRate  
)  
```

### パラメーター

*dwGeneralRate*   \
型: DWORD

汎用サンプル レート。

### 戻り値

型: DWORD

サンプル レート。

## 解説

`GetXmaSampleRate` はインライン ヘルパー関数です。44100 Hz を超えるすべてのレートに対する既定の XMA レートは 48000 Hz です。XMA2 の詳細については、[XMA2 の概要](/build/console-features/audio/overviews/xma2-overview)を参照してください。XBOX One のオーディオ アーキテクチャの概要については、**未来のサウンド**: [XBOX One のオーディオ アーキテクチャ](/build/console-features/audio/overviews/xbox-one-audio-architecture)を参照してください。

## 要件

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

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

## 関連項目

[xma2defs](/reference/audio/xma2defs/xma2defs_members)


## Related topics

- [XMA2Defs](/ja-jp/reference/audio/xma2defs/xma2defs_members.md)
- [SHAPE_XMA_SAMPLE_RATE](/ja-jp/reference/audio/shapexmacontext/enums/shape_xma_sample_rate.md)
- [GetShapeXmaSampleRate](/ja-jp/reference/audio/shapexmacontext/functions/getshapexmasamplerate.md)
- [SetShapeXmaSampleRate(SHAPE_XMA_CONTEXT*, SHAPE_XMA_SAMPLE_RATE)](/ja-jp/reference/audio/shapexmacontext/functions/setshapexmasamplerate.md)
- [GetXmaBlockContainingSample](/ja-jp/reference/audio/xma2defs/functions/getxmablockcontainingsample.md)
