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

# GetXmaPacketMetadata

> GetXmaPacketMetadata

# GetXmaPacketMetadata

This is a helper function for the `XMA2PACKET` structure.

## Syntax

```cpp theme={null}
DWORD GetXmaPacketMetadata(  
         const BYTE* pPacket  
)  
```

### Parameters

*pPacket*   \_In\_bytecount\_(3)\
Type: BYTE\*

Pointer to the packet.

### Return value

Type: DWORD

Always 1 for XMA2.

## Remarks

`GetXmaPacketMetadata` is a helper function that extracts the fields in the `XMA2packet`.

<Note>Bitfields cannot be read directly on little-endian architectures such as the Intel x86 because they are laid out in big-endian form.</Note>

For more information about XMA2, see [Overview of XMA2](/build/console-features/audio/overviews/xma2-overview). For an overview of the audio architecture of XBOX One, see **The sound of the future**: [The audio architecture in XBOX One](/build/console-features/audio/overviews/xbox-one-audio-architecture).

## Requirements

**Header:** xma2defs.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[xma2defs](/reference/audio/xma2defs/xma2defs_members)


## Related topics

- [XMA2Defs](/reference/audio/xma2defs/xma2defs_members.md)
- [GetShapeXmaPacketMetadata](/reference/audio/shapexmacontext/functions/getshapexmapacketmetadata.md)
- [SetShapeXmaPacketMetadata](/reference/audio/shapexmacontext/functions/setshapexmapacketmetadata.md)
- [GetXmaPacketFrameCount](/reference/audio/xma2defs/functions/getxmapacketframecount.md)
- [GetXmaPacketSkipCount](/reference/audio/xma2defs/functions/getxmapacketskipcount.md)
