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

# ApuFree

> ApuFree

# ApuFree

释放 APU 物理内存。

## 语法

```cpp theme={null}
void ApuFree(  
         void* virtualAddress  
)  
```

### 参数

*virtualAddress*   \_In\_\
类型:void\*

要释放的虚拟地址。

### 返回值

类型:void

## 备注

释放虚拟地址会使物理地址失效。若要创建分配,请使用 [ApuAlloc](/reference/audio/apu/functions/apualloc)。

`ApuAlloc` 返回的虚拟地址和物理地址表示同一地址空间的不同视图。

## 要求

**头文件:** apu.h

**库:** acphal.lib

**支持的平台:** XBOX One 系列主机和 XBOX Series 主机

## 概念文档

* [XMA2 概述](/build/console-features/audio/overviews/xma2-overview)

## 另请参阅

[ApuAlloc](/reference/audio/apu/functions/apualloc)\
[APU](/reference/audio/apu/apu_members)


## Related topics

- [ApuAlloc](/zh-CN/reference/audio/apu/functions/apualloc.md)
- [XMA2 概述](/zh-CN/build/console-features/audio/overviews/xma2-overview.md)
- [APU(音频处理单元)](/zh-CN/reference/audio/apu/apu_members.md)
- [ApuHeapState](/zh-CN/reference/audio/apu/structs/apuheapstate.md)
- [ApuMapApuAddress](/zh-CN/reference/audio/apu/functions/apumapapuaddress.md)
