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

오디오 버퍼의 바이트 수를 가져옵니다.

## Syntax

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

### Parameters

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

[SHAPE\_DMA\_CONTEXT](/reference/audio/shapedmacontext/structs/shape_dma_context) 구조체에 대한 포인터입니다.

### Return value

Type: UINT32

오디오 버퍼의 바이트 수입니다.

## Remarks

DMA(Direct Memory Access) 버퍼의 전체 크기(바이트 단위)는 다음과 같이 계산됩니다:

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

DMA 버퍼는 순환 방식이며 128개 샘플 블록 단위의 디인터리브된 샘플을 포함합니다. 각 샘플은 32비트 부동 소수점 값이거나 32비트 부호 있는 정수입니다.

DMA에 대한 자세한 내용은 [Overview of SHAPE](/build/console-features/audio/overviews/shape-overview)의 [DMA](/build/console-features/audio/overviews/shape-overview#ID4EWC) 섹션을 참조하십시오.

## Requirements

**Header:** shapedmacontext.h

**Supported platforms:** XBOX One 계열 콘솔 및 XBOX Series 콘솔

## See also

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


## Related topics

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