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

# GetShapeDmaBytesPerFrame

> GetShapeDmaBytesPerFrame

# GetShapeDmaBytesPerFrame

Obtiene el número de bytes por fotograma.

## Sintaxis

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

### Parámetros

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

Puntero a una estructura [SHAPE\_DMA\_CONTEXT](/reference/audio/shapedmacontext/structs/shape_dma_context).

### Valor devuelto

Tipo: UINT32

Número de bytes por fotograma.

## Comentarios

Esta función calcula el número total de bytes de un fotograma completo multiplicando el número de canales por el número de muestras por fotograma y por el número de bytes por muestra.

En la estructura del búfer de acceso directo a memoria (DMA), el controlador puede especificar el número máximo de bytes por fotograma. Al transmitir datos, el controlador de host divide el búfer de datos en paquetes de este tamaño.

## Requisitos

**Encabezado:** shapedmacontext.h

**Plataformas compatibles:** consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[SHAPE\_DMA\_CONTEXT](/reference/audio/shapedmacontext/structs/shape_dma_context)\
[DMA](/build/console-features/audio/overviews/shape-overview#ID4EWC)\
[ShapeDmaContext](/reference/audio/shapedmacontext/shapedmacontext_members)


## Related topics

- [ShapeDmaContext](/es/reference/audio/shapedmacontext/shapedmacontext_members.md)
- [GetShapeDmaNumBytes](/es/reference/audio/shapedmacontext/functions/getshapedmanumbytes.md)
- [GetShapeDmaNumFrames](/es/reference/audio/shapedmacontext/functions/getshapedmanumframes.md)
- [GetShapeDmaFramesAvailable](/es/reference/audio/shapedmacontext/functions/getshapedmaframesavailable.md)
- [GetShapeDmaFramesFree](/es/reference/audio/shapedmacontext/functions/getshapedmaframesfree.md)
