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

# ApuFree

> ApuFree

# ApuFree

釋放 APU 實體記憶體。

## 語法

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

### 參數

*virtualAddress*   \_In\_\
類型：void\*

要釋放的虛擬位址。

### 傳回值

類型：void

## 備註

釋放虛擬位址會使實體位址失效。若要建立配置，請使用 [ApuAlloc](https://docs.xbox.com/zh-TW/reference/audio/apu/functions/apualloc.md)。

`ApuAlloc` 傳回的虛擬位址和實體位址代表相同位址空間的不同檢視。

## 需求

**標頭：** apu.h

**程式庫：** acphal.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 概念文件

* [XMA2 概觀](https://docs.xbox.com/zh-TW/build/console-features/audio/overviews/xma2-overview.md)

## 另請參閱

[ApuAlloc](https://docs.xbox.com/zh-TW/reference/audio/apu/functions/apualloc.md)\
[APU](https://docs.xbox.com/zh-TW/reference/audio/apu/apu_members.md)


## Related topics

- [ApuAlloc](https://docs.xbox.com/zh-TW/reference/audio/apu/functions/apualloc.md)
- [XMA2 概觀](https://docs.xbox.com/zh-TW/build/console-features/audio/overviews/xma2-overview.md)
- [APU (音訊處理單元)](https://docs.xbox.com/zh-TW/reference/audio/apu/apu_members.md)
- [ApuHeapState](https://docs.xbox.com/zh-TW/reference/audio/apu/structs/apuheapstate.md)
- [ApuMapApuAddress](https://docs.xbox.com/zh-TW/reference/audio/apu/functions/apumapapuaddress.md)
