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

# GetShapeDmaNumBytes

> GetShapeDmaNumBytes

# GetShapeDmaNumBytes

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

## 構文

```cpp theme={null}
UINT32 GetShapeDmaNumBytes(  
         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

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

## 解説

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

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

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

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

## 要件

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

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

## 関連項目

[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)
- [GetShapeDmaNumChannels](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/functions/getshapedmanumchannels.md)
- [GetShapeDmaNumFrames](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/functions/getshapedmanumframes.md)
- [GetShapeDmaBytesPerFrame](https://docs.xbox.com/ja-jp/reference/audio/shapedmacontext/functions/getshapedmabytesperframe.md)
- [GetShapeXmaOutputBufferNumBytesAvailable](https://docs.xbox.com/ja-jp/reference/audio/shapexmacontext/functions/getshapexmaoutputbuffernumbytesavailable.md)
