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

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

## Syntax

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

### Parameters

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

[SHAPE\_DMA\_CONTEXT](https://docs.xbox.com/ko/reference/audio/shapedmacontext/structs/shape_dma_context.md) 구조체에 대한 포인터입니다.

### 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](https://docs.xbox.com/ko/build/console-features/audio/overviews/shape-overview.md)의 [DMA](https://docs.xbox.com/ko/build/console-features/audio/overviews/shape-overview.md#ID4EWC) 섹션을 참조하십시오.

## Requirements

**Header:** shapedmacontext.h

**Supported platforms:** XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## See also

[ShapeDmaContext](https://docs.xbox.com/ko/reference/audio/shapedmacontext/shapedmacontext_members.md)


## Related topics

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