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

# ApuMapVirtualAddress

> ApuMapVirtualAddress

# ApuMapVirtualAddress

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

## Syntax

```cpp theme={null}
APU_ADDRESS ApuMapVirtualAddress(  
         const void* virtualAddress  
)  
```

### Parameters

*virtualAddress*   \_In\_\
Type: void\*

Virtual address to map.

### Return value

Type: APU\_ADDRESS

APU physical address associated with the specified virtual address.

## Remarks

This method returns 0 if the virtual address is invalid or if it was not allocated with [ApuAlloc](/reference/audio/apu/functions/apualloc).

To verify whether a virtual address is valid, call [ApuIsVirtualAddressValid](/reference/audio/apu/functions/apuisvirtualaddressvalid).

If the physical address is known, call [ApuMapApuAddress](/reference/audio/apu/functions/apumapapuaddress) to determine the associated virtual address.

## Requirements

**Header:** apu.h

**Library:** acphal.lib

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

## See also

[ApuIsVirtualAddressValid](/reference/audio/apu/functions/apuisvirtualaddressvalid)\
[ApuMapApuAddress](/reference/audio/apu/functions/apumapapuaddress)\
[APU](/reference/audio/apu/apu_members)
