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

# GetShapeDmaBytesPerFrame

> GetShapeDmaBytesPerFrame

# GetShapeDmaBytesPerFrame

フレームあたりのバイト数を取得します。

## 構文

```cpp theme={null}
UINT32 GetShapeDmaBytesPerFrame(  
         const SHAPE_DMA_CONTEXT* context  
)  
```

### パラメーター

*context*   \_In\_\
型: [SHAPE\_DMA\_CONTEXT\*](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/structs/shape_dma_context.md)

[SHAPE\_DMA\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/structs/shape_dma_context.md) 構造体へのポインター。

### 戻り値

型: UINT32

フレームあたりのバイト数。

## 解説

この関数は、チャネル数にフレームあたりのサンプル数とサンプルあたりのバイト数を掛けて、1 つの完全なフレーム内の総バイト数を計算します。

Direct Memory Access (DMA) バッファー構造体では、ドライバーはフレームあたりの最大バイト数を指定できます。データを送信するとき、ホスト コントローラーはこのサイズのパケットにデータ バッファーを分割します。

## 要件

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

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

## 関連項目

[SHAPE\_DMA\_CONTEXT](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/structs/shape_dma_context.md)\
[DMA](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/shape-overview.md#ID4EWC)\
[ShapeDmaContext](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/shapedmacontext_members.md)


## Related topics

- [ShapeDmaContext](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/shapedmacontext_members.md)
- [GetShapeDmaNumBytes](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/functions/getshapedmanumbytes.md)
- [GetShapeDmaFramesAvailable](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/functions/getshapedmaframesavailable.md)
- [GetShapeDmaFramesFree](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/functions/getshapedmaframesfree.md)
- [GetShapeDmaNumFrames](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/functions/getshapedmanumframes.md)
