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

# GetShapeDmaNumBytes

> GetShapeDmaNumBytes

# GetShapeDmaNumBytes

オーディオ バッファー内のバイト数を取得します。

## 構文

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

### パラメーター

*context*   \_In\_\
型: [SHAPE\_DMA\_CONTEXT\*](/reference/audio/shapedmacontext/structs/shape_dma_context)

[SHAPE\_DMA\_CONTEXT](/reference/audio/shapedmacontext/structs/shape_dma_context) 構造体へのポインター。

### 戻り値

型: UINT32

オーディオ バッファー内のバイト数。

## 解説

Direct Memory Access (DMA) バッファーの完全なサイズ (バイト単位) は次のように計算されます。

```cpp theme={null}
fullBufferSizeInBytes = 128 * 4 * numChannels * numFrames  
```

DMA バッファーは循環バッファーであり、128 サンプル ブロックのデインターリーブされたサンプルを含みます。各サンプルは 32 ビットの浮動小数点値または 32 ビットの符号付き整数のいずれかです。

DMA の詳細については、[SHAPE の概要](/build/console-features/audio/overviews/shape-overview) の [DMA](/build/console-features/audio/overviews/shape-overview#ID4EWC) セクションを参照してください。

## 要件

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

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

## 関連項目

[ShapeDmaContext](/reference/audio/shapedmacontext/shapedmacontext_members)


## Related topics

- [ShapeDmaContext](/ja-jp/reference/audio/shapedmacontext/shapedmacontext_members.md)
- [GetShapeDmaNumChannels](/ja-jp/reference/audio/shapedmacontext/functions/getshapedmanumchannels.md)
- [GetShapeDmaNumFrames](/ja-jp/reference/audio/shapedmacontext/functions/getshapedmanumframes.md)
- [GetShapeDmaBytesPerFrame](/ja-jp/reference/audio/shapedmacontext/functions/getshapedmabytesperframe.md)
- [GetShapeXmaOutputBufferNumBytesAvailable](/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffernumbytesavailable.md)
