> ## 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](/zh-TW/reference/audio/apu/functions/apualloc)。

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

## 需求

**標頭：** apu.h

**程式庫：** acphal.lib

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

## 概念文件

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

## 另請參閱

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


## Related topics

- [ApuFree](/reference/audio/apu/functions/apufree.md)
- [ApuAlloc](/reference/audio/apu/functions/apualloc.md)
