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

# ApuMapApuAddress

> ApuMapApuAddress

Returns a virtual address that is associated with an APU physical address.

## Syntax

```cpp theme={null}
void* ApuMapApuAddress(  
         APU_ADDRESS apuPhysicalAddress  
)  
```

### Parameters

*apuPhysicalAddress*   \
Type: APU\_ADDRESS

APU physical address to map.

### Return value

Type: void\*

Virtual address associated with the specified APU physical address.

## Remarks

This method returns nullptr if the physical address is invalid or if it was not allocated with [ApuAlloc](https://docs.xbox.com/reference/audio/apu/functions/apualloc.md).

The virtual and physical addresses that are returned by `ApuAlloc` represent different views of the same address space.

If the virtual address is known, call [ApuMapVirtualAddress](https://docs.xbox.com/reference/audio/apu/functions/apumapvirtualaddress.md) to determine the associated physical address.

## Requirements

**Header:** apu.h

**Library:** acphal.lib

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

## See also

[ApuMapVirtualAddress](https://docs.xbox.com/reference/audio/apu/functions/apumapvirtualaddress.md)\
[APU](https://docs.xbox.com/reference/audio/apu/apu_members.md)


## Related topics

- [ApuMapVirtualAddress](https://docs.xbox.com/reference/audio/apu/functions/apumapvirtualaddress.md)
- [ApuIsVirtualAddressValid](https://docs.xbox.com/reference/audio/apu/functions/apuisvirtualaddressvalid.md)
- [APU (Audio Processing Unit)](https://docs.xbox.com/reference/audio/apu/apu_members.md)
- [SetShapeXmaOutputBuffer(SHAPE_XMA_CONTEXT*, APU_ADDRESS)](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmaoutputbuffer_2.md)
- [SetShapeXmaInputBuffer0(SHAPE_XMA_CONTEXT*, APU_ADDRESS)](https://docs.xbox.com/reference/audio/shapexmacontext/functions/setshapexmainputbuffer0_2.md)
