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

# IAcpHal

> IAcpHal

# IAcpHal

IAcpHal 接口定义了下列方法。若要使用它们,请通过 [AcpHalCreate](/reference/audio/acphal/functions/acphalcreate) 创建 IACPHAL 接口的实例。

## 语法

```cpp theme={null}
class IAcpHal  
```

## 公共方法

## 方法

| 方法                                                                                                   | 描述                            |
| ---------------------------------------------------------------------------------------------------- | ----------------------------- |
| [IAcpHal::Connect](/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_connect)               | 连接到 ACP。                      |
| [IAcpHal::Disconnect](/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_disconnect)         | 从 ACP 断开连接。                   |
| [IAcpHal::GetNumMessages](/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_getnummessages) | 返回消息队列中的消息数量。                 |
| [IAcpHal::PopMessage](/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_popmessage)         | 返回 ACP 消息队列中最早的消息,然后将其从队列中移除。 |
| [IAcpHal::SubmitCommand](/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_submitcommand)   | 向 ACP 提交命令。                   |

## 要求

**头文件:** acphal.h

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

## 另请参阅

[acphal](/reference/audio/acphal/acphal_members)


## Related topics

- [IAcpHal::Connect](/zh-CN/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_connect.md)
- [IAcpHal::Disconnect](/zh-CN/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_disconnect.md)
- [IAcpHal::SubmitCommand](/zh-CN/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_submitcommand.md)
- [IAcpHal::PopMessage](/zh-CN/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_popmessage.md)
- [IAcpHal::GetNumMessages](/zh-CN/reference/audio/acphal/interfaces/IAcpHal/methods/iacphal_getnummessages.md)
