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

# SetShapeDmaBufferFull

> SetShapeDmaBufferFull

# SetShapeDmaBufferFull

バッファー フル フラグを設定します。

## 構文

```cpp theme={null}
HRESULT SetShapeDmaBufferFull(  
         SHAPE_DMA_CONTEXT* context,  
         bool bufferFull  
)  
```

### パラメーター

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

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

*bufferFull*   \
型: bool

バッファー フル フラグ。

### 戻り値

型: HRESULT

HRESULT の成功またはエラー コード。

## 解説

オーディオ バッファーが十分に大きく、データがバッファー サイズに応じた一定間隔でストリーミングされるようにすることで、DMA コマンドのブロックを防ぐことができます。たとえば、一度に 4 個のハードウェア フレームをストリーミングしている場合、そのフレームの倍数 (少なくとも 8 フレームでダブル バッファリング) をバッファーに確保し、タイトルの読み取りポインターより先行してハードウェアが書き込めるようにしてください。あるいは、次のフローグラフを送信する前にバッファーを空にすること (消費、DMA 読み取りポインターの更新、その後フローグラフの送信) を強制することもできます。詳細については、[SHAPE の概要](/build/console-features/audio/overviews/shape-overview) の [Blocked commands](/build/console-features/audio/overviews/shape-overview#ID4EBGAC) を参照してください。

## 要件

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

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

## 関連項目

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


## Related topics

- [ShapeDmaContext](/ja-jp/reference/audio/shapedmacontext/shapedmacontext_members.md)
- [GetShapeDmaBufferFull](/ja-jp/reference/audio/shapedmacontext/functions/getshapedmabufferfull.md)
- [SetShapeDmaReadWriteFull](/ja-jp/reference/audio/shapedmacontext/functions/setshapedmareadwritefull.md)
- [SetShapeDmaAudioBuffer](/ja-jp/reference/audio/shapedmacontext/functions/setshapedmaaudiobuffer_2.md)
- [SetShapeDmaAudioBuffer 関数](/ja-jp/reference/audio/shapedmacontext/functions/setshapedmaaudiobuffer.md)
