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

# ApuIsVirtualAddressValid

> ApuIsVirtualAddressValid

Verifies a virtual address.

## Syntax

```cpp theme={null}
bool ApuIsVirtualAddressValid(  
         const void* virtualAddress,  
         UINT32 physicalAlignmentInBytes  
)  
```

### Parameters

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

Virtual address to verify.

*physicalAlignmentInBytes*   \
Type: UINT32

Expected alignment of the physical address.

### Return value

Type: bool

Returns true if the virtual address is valid, false otherwise.

## Remarks

This function verifies that the specified virtual address is valid, that it was allocated with [ApuAlloc](https://docs.xbox.com/reference/audio/apu/functions/apualloc.md), and that the associated APU physical address has the specified alignment.

To determine the associated physical address, call [ApuMapVirtualAddress](https://docs.xbox.com/reference/audio/apu/functions/apumapvirtualaddress.md). If the physical address is known, call [ApuMapApuAddress](https://docs.xbox.com/reference/audio/apu/functions/apumapapuaddress.md) 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

[ApuMapVirtualAddress](https://docs.xbox.com/reference/audio/apu/functions/apumapvirtualaddress.md)\
[ApuMapApuAddress](https://docs.xbox.com/reference/audio/apu/functions/apumapapuaddress.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)
- [APU (Audio Processing Unit)](https://docs.xbox.com/reference/audio/apu/apu_members.md)
- [ApuMapApuAddress](https://docs.xbox.com/reference/audio/apu/functions/apumapapuaddress.md)
- [ApuFree](https://docs.xbox.com/reference/audio/apu/functions/apufree.md)
- [ApuAlloc](https://docs.xbox.com/reference/audio/apu/functions/apualloc.md)
